X-Git-Url: https://git.xinqibao.xyz/slstatus.git/blobdiff_plain/d42870d6ca7fb587b38f8cf6d6821ae33a53a696..42edfea89a47cbf0623d1aaf5673a4e5ca79fb52:/components/Linux/uptime.c?ds=inline diff --git a/components/Linux/uptime.c b/components/Linux/uptime.c deleted file mode 100644 index e7afc8e..0000000 --- a/components/Linux/uptime.c +++ /dev/null @@ -1,24 +0,0 @@ -/* See LICENSE file for copyright and license details. */ -#include -#include -#include -#include - -#include "../../util.h" - -const char * -uptime(void) -{ - int h; - int m; - int uptime = 0; - struct sysinfo info; - - sysinfo(&info); - uptime = info.uptime; - - h = uptime / 3600; - m = (uptime - h * 3600) / 60; - - return bprintf("%dh %dm", h, m); -}