fixed uptime
This commit is contained in:
parent
889e6293fd
commit
d28f74ea00
2 changed files with 7 additions and 13 deletions
|
@ -130,7 +130,7 @@ int GetUptime(const char *title, const FETCH fetch) {
|
|||
int mins = (uptime.tv_sec / 60) - (uptime.tv_sec / 3600 * 60);
|
||||
|
||||
if (days > 0)
|
||||
printf("%s%s%s%dd %dh %dm", fetch.color, title, fetch.font_color, days, hours, mins);
|
||||
printf("%s%s%s%d days", fetch.color, title, fetch.font_color, days);
|
||||
|
||||
else
|
||||
printf("%s%s%s%dh %dm", fetch.color, title, fetch.font_color, hours, mins);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue