projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b02d57
)
eta overflow fix
author
Gurudas Pai
<gurudas.pai@oracle.com>
Fri, 13 Jun 2008 06:40:11 +0000
(08:40 +0200)
committer
Jens Axboe
<jens.axboe@oracle.com>
Fri, 13 Jun 2008 06:40:11 +0000
(08:40 +0200)
Sometime I get eta's like "eta 4294967286m:4294967266s" , just an overflow
issue. The following patch fixes the issue.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
eta.c
patch
|
blob
|
blame
|
history
diff --git
a/eta.c
b/eta.c
index 5b8a6879ae5a952c5727b22ff756897b0fc4b76a..766f6509dfe2e3254c97d602e37c5119694a7878 100644
(file)
--- a/
eta.c
+++ b/
eta.c
@@
-66,7
+66,7
@@
static void check_str_update(struct thread_data *td)
/*
* Convert seconds to a printable string.
*/
-static void eta_to_str(char *str,
int
eta_sec)
+static void eta_to_str(char *str,
unsigned long
eta_sec)
{
unsigned int d, h, m, s;
int disp_hour = 0;