2020-05-01 13:25:27 (UTC-03:00)
Marcel Rodrigues <marcelgmr@gmail.com>
fix bug in format_uptime()
diff --git a/isv.c b/isv.c index c958a11..ceaa7ee 100644 --- a/isv.c +++ b/isv.c @@ -117,14 +117,14 @@ format_uptime(unsigned long *value, char *suffix) if (*value >= 60) { *value /= 60; *suffix = 'm'; - } - if (*value >= 60) { - *value /= 60; - *suffix = 'h'; - } - if (*value >= 24) { - *value /= 24; - *suffix = 'd'; + if (*value >= 60) { + *value /= 60; + *suffix = 'h'; + if (*value >= 24) { + *value /= 24; + *suffix = 'd'; + } + } } }