5 #include "status/temp.h"
9 void status_temp(char *title, char *sysfile)
14 stlen = fileRead(stline, sizeof(stline), sysfile);
21 * Sometimes we get garbage from sysfs...
23 if (stlen < 6 || stlen > 7) {
24 printf(" ^fg(red)%sERROR ", title);
28 fputs(" ^fg(#FF33FF)", stdout);
30 fwrite(stline, 1, stlen - 4, stdout);
33 fwrite(&stline[stlen - 3], 1, 1, stdout);