Skip to content

Commit 30b6522

Browse files
kangaechuedsiper
authored andcommitted
restore --staged tests/internal/aws_util.c
Signed-off-by: kangaechu <[email protected]>
1 parent 9392bc1 commit 30b6522

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/aws/flb_aws_util.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1003,9 +1003,9 @@ size_t flb_aws_strftime_precision(char **out_buf, const char *time_format,
10031003

10041004
/* Replace %3N to millisecond, %9N and %L to nanosecond in time_format. */
10051005
snprintf(millisecond_str, FLB_AWS_MILLISECOND_FORMATTER_LENGTH+1,
1006-
"%" PRIu64, (uint64_t) tms->tm.tv_nsec / 1000000);
1006+
"%03" PRIu64, (uint64_t) tms->tm.tv_nsec / 1000000);
10071007
snprintf(nanosecond_str, FLB_AWS_NANOSECOND_FORMATTER_LENGTH+1,
1008-
"%" PRIu64, (uint64_t) tms->tm.tv_nsec);
1008+
"%09" PRIu64, (uint64_t) tms->tm.tv_nsec);
10091009
for (i = 0; i < time_format_len; i++) {
10101010
if (strncmp(time_format+i, FLB_AWS_MILLISECOND_FORMATTER, 3) == 0) {
10111011
strncat(tmp_parsed_time_str, millisecond_str,

0 commit comments

Comments
 (0)