From 9c02f6eface8c71980b65db2999753a9567d3662 Mon Sep 17 00:00:00 2001 From: Gurudas Pai Date: Fri, 13 Jun 2008 08:40:11 +0200 Subject: [PATCH] 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 --- eta.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.25.1