projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fio 2.6
[fio.git]
/
eta.c
diff --git
a/eta.c
b/eta.c
index 8785540aa6f532f7e718810fa89b041a993d3e9f..ffab34e2c740c8d38ac3c808a062013f6c0c1abd 100644
(file)
--- a/
eta.c
+++ b/
eta.c
@@
-214,7
+214,7
@@
static unsigned long thread_eta(struct thread_data *td)
if (td->o.time_based) {
if (timeout) {
perc_t = (double) elapsed / (double) timeout;
if (td->o.time_based) {
if (timeout) {
perc_t = (double) elapsed / (double) timeout;
- if (perc_t
>
perc)
+ if (perc_t
<
perc)
perc = perc_t;
} else {
/*
perc = perc_t;
} else {
/*
@@
-589,7
+589,7
@@
void display_thread_status(struct jobs_eta *je)
fflush(stdout);
}
fflush(stdout);
}
-struct jobs_eta *get_jobs_eta(
int
force, size_t *size)
+struct jobs_eta *get_jobs_eta(
bool
force, size_t *size)
{
struct jobs_eta *je;
{
struct jobs_eta *je;
@@
-616,7
+616,7
@@
void print_thread_status(void)
struct jobs_eta *je;
size_t size;
struct jobs_eta *je;
size_t size;
- je = get_jobs_eta(
0
, &size);
+ je = get_jobs_eta(
false
, &size);
if (je)
display_thread_status(je);
if (je)
display_thread_status(je);