From: Gurudas Pai Date: Fri, 13 Jun 2008 06:40:11 +0000 (+0200) Subject: eta overflow fix X-Git-Tag: fio-1.22-rc1~15 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=9c02f6eface8c71980b65db2999753a9567d3662;hp=3b02d57453fc574331020c3d842a27c67846a4b7 eta overflow fix Sometime I get eta's like "eta 4294967286m:4294967266s" , just an overflow issue. The following patch fixes the issue. Signed-off-by: Jens Axboe --- diff --git a/eta.c b/eta.c index 5b8a6879..766f6509 100644 --- 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;