summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
3b02d57)
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>
/*
* Convert seconds to a printable string.
*/
/*
* 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;
{
unsigned int d, h, m, s;
int disp_hour = 0;