13 int upts, uptm, upth, uptd;
15 stfile = open("/proc/uptime", 0);
18 stlen = read(stfile, stline, sizeof(stline));
21 for(i = 0; i < stlen; i++)
26 uptd = upts / (24 * 60 * 60);
27 upts -= uptd * (24 * 60 * 60);
28 upth = upts / (60 * 60);
29 upts -= upth * (60 * 60);
33 fputs(" ^fg(#AAAAAA)up: ", stdout);