14 int upts, uptm, upth, uptd;
16 fputs(" ^fg(#AAAAAA)up: ", stdout);
18 stlen = fileRead(stline, sizeof(stline), "/proc/uptime");
21 fputs(" ^fg(red)ERROR ", stdout);
26 for(i = 0; i < stlen; i++)
35 // Split time into days, hours, mins, secs
37 uptd = upts / (24 * 60 * 60);
38 upts -= uptd * (24 * 60 * 60);
39 upth = upts / (60 * 60);
40 upts -= upth * (60 * 60);