projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d22687
)
eta: fix dead variable assignments
author
Jens Axboe
<axboe@kernel.dk>
Sun, 8 Apr 2018 21:50:45 +0000
(15:50 -0600)
committer
Jens Axboe
<axboe@kernel.dk>
Sun, 8 Apr 2018 21:50:45 +0000
(15:50 -0600)
Signed-off-by: Jens Axboe <axboe@kernel.dk>
eta.c
patch
|
blob
|
blame
|
history
diff --git
a/eta.c
b/eta.c
index 2d549ee9c8f4798154a1f3f9e515b6762cab0ebf..9111f5ec1e670bfc4177c12e24601795be291efb 100644
(file)
--- a/
eta.c
+++ b/
eta.c
@@
-149,7
+149,7
@@
void eta_to_str(char *str, unsigned long eta_sec)
str += sprintf(str, "%02uh:", h);
str += sprintf(str, "%02um:", m);
- s
tr += s
printf(str, "%02us", s);
+ sprintf(str, "%02us", s);
}
/*
@@
-621,7
+621,7
@@
void display_thread_status(struct jobs_eta *je)
free(iops_str[ddir]);
}
}
-
p +=
sprintf(p, "\r");
+ sprintf(p, "\r");
printf("%s", output);