This is an automated email from the git hooks/post-receive script.
mreynolds pushed a commit to branch 389-ds-base-1.3.10
in repository 389-ds-base.
The following commit(s) were added to refs/heads/389-ds-base-1.3.10 by this push:
new 3fbff08 Issue 50655 - access log etime is not properly formatted
3fbff08 is described below
commit 3fbff0870ae1bac549c12e40df6d2d0da2e1e7e2
Author: Mark Reynolds <mreynolds(a)redhat.com>
AuthorDate: Wed Oct 16 16:52:59 2019 -0400
Issue 50655 - access log etime is not properly formatted
Description: The wrong printf format was used for displaying the nanosecond etime
in the access log.
relates:
https://pagure.io/389-ds-base/issue/50655
Reviewed by: firstyear(Thanks!)
---
ldap/servers/slapd/result.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/ldap/servers/slapd/result.c b/ldap/servers/slapd/result.c
index 34ddd85..61e7a70 100644
--- a/ldap/servers/slapd/result.c
+++ b/ldap/servers/slapd/result.c
@@ -1925,7 +1925,8 @@ log_result(Slapi_PBlock *pb, Operation *op, int err, ber_tag_t tag,
int nentries
struct timespec o_hr_time_end;
slapi_operation_time_elapsed(op, &o_hr_time_end);
- snprintf(etime, ETIME_BUFSIZ, "%" PRId64 ".%010" PRId64
"", (int64_t)o_hr_time_end.tv_sec, (int64_t)o_hr_time_end.tv_nsec);
+
+ snprintf(etime, ETIME_BUFSIZ, "%" PRId64 ".%.09" PRId64
"", (int64_t)o_hr_time_end.tv_sec, (int64_t)o_hr_time_end.tv_nsec);
slapi_pblock_get(pb, SLAPI_OPERATION_NOTES, &operation_notes);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.