projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
os/windows/posix.c: ensure that ctime_r() adds a newline
[fio.git]
/
stat.c
diff --git
a/stat.c
b/stat.c
index 74c2686c660ca33b76b12e85eefab3a68e933e7c..c9148ad7a73b321b08751353326e453581fbac59 100644
(file)
--- a/
stat.c
+++ b/
stat.c
@@
-669,6
+669,8
@@
static void show_thread_status_normal(struct thread_stat *ts,
if (!ddir_rw_sum(ts->io_bytes) && !ddir_rw_sum(ts->total_io_u))
return;
+
+ memset(time_buf, 0, sizeof(time_buf));
time(&time_p);
os_ctime_r((const time_t *) &time_p, time_buf, sizeof(time_buf));