5 #include "status/fan.h"
9 void status_fan(char *title, char *sysfile)
14 stlen = fileRead(stline, sizeof(stline), sysfile);
19 // Read a valid value? Sometimes we get garbage from sysfs...
21 printf(" ^fg(red)%sERROR ", title);
25 fputs(" ^fg(#CCCCCC)", stdout);
27 fwrite(stline, 1, stlen - 1, stdout);
28 fputs(" rpm ", stdout);