Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: jinhua.huang <[email protected]>
  • Loading branch information
jinhuahuang2021 committed Dec 27, 2023
1 parent 7d4e427 commit f827dda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/memblaze/memblaze-nvme.c
Original file line number Diff line number Diff line change
Expand Up @@ -2025,8 +2025,8 @@ static void high_latency_log_v1_print(struct high_latency_log *log, int size)
char str_time_s[20] = {0};
char str_time_ms[32] = {0};

strftime(str_time_s, sizeof str_time_s, "%Y-%m-%d %H:%M:%S", localtime(&timestamp_s));
snprintf(str_time_ms, sizeof str_time_ms, "%s.%03d", str_time_s, time_ms);
strftime(str_time_s, sizeof(str_time_s), "%Y-%m-%d %H:%M:%S", localtime(&timestamp_s));
snprintf(str_time_ms, sizeof(str_time_ms), "%s.%03d", str_time_s, time_ms);
printf("%-24s", str_time_ms);

//
Expand Down

0 comments on commit f827dda

Please sign in to comment.