projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
jobs_eta alloc padding
[fio.git]
/
eta.c
diff --git
a/eta.c
b/eta.c
index 3e8eb0bbc0d1981fc0aa9dac768fddbb1a02b466..7eb1c27f6a3c57b46f371b422fd800e480fb15ad 100644
(file)
--- a/
eta.c
+++ b/
eta.c
@@
-352,7
+352,7
@@
int calc_thread_status(struct jobs_eta *je, int force)
static struct timeval rate_prev_time, disp_prev_time;
if (!force) {
static struct timeval rate_prev_time, disp_prev_time;
if (!force) {
- if (
output_format != FIO_OUTPUT_NORMAL
&&
+ if (
!(output_format & FIO_OUTPUT_NORMAL)
&&
f_out == stdout)
return 0;
if (temp_stall_ts || eta_print == FIO_ETA_NEVER)
f_out == stdout)
return 0;
if (temp_stall_ts || eta_print == FIO_ETA_NEVER)
@@
-590,7
+590,7
@@
struct jobs_eta *get_jobs_eta(int force, size_t *size)
if (!thread_number)
return NULL;
if (!thread_number)
return NULL;
- *size = sizeof(*je) + THREAD_RUNSTR_SZ +
1
;
+ *size = sizeof(*je) + THREAD_RUNSTR_SZ +
8
;
je = malloc(*size);
if (!je)
return NULL;
je = malloc(*size);
if (!je)
return NULL;