X-Git-Url: https://git.xinqibao.xyz/slstatus.git/blobdiff_plain/43a12832a343747b7317987b552a87eb8ed5b42d..acfa1f50c24add6b9a78d94af21f9350150fb9c2:/components/uptime.c diff --git a/components/uptime.c b/components/uptime.c index 67acbf7..978f88f 100644 --- a/components/uptime.c +++ b/components/uptime.c @@ -1,5 +1,5 @@ /* See LICENSE file for copyright and license details. */ -#include +#include #include #include @@ -19,5 +19,5 @@ uptime(void) h = uptime.tv_sec / 3600; m = uptime.tv_sec % 3600 / 60; - return bprintf("%" PRIuMAX "h %" PRIuMAX "m", h, m); + return bprintf("%juh %jum", h, m); }