Skip to content

Commit

Permalink
restore --staged tests/internal/aws_util.c
Browse files Browse the repository at this point in the history
Signed-off-by: kangaechu <[email protected]>
  • Loading branch information
kangaechu authored and edsiper committed Aug 7, 2024
1 parent 9392bc1 commit 30b6522
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/aws/flb_aws_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -1003,9 +1003,9 @@ size_t flb_aws_strftime_precision(char **out_buf, const char *time_format,

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

0 comments on commit 30b6522

Please sign in to comment.