9 void status_temp(GlobalData *g, char *title, char *sysfile)
12 char text[16] = { 0 };
21 stlen = fileRead(stline, sizeof(stline), sysfile);
28 * Sometimes we get garbage from sysfs...
30 if (stlen < 6 || stlen > 7) {
32 snprintf(text, sizeof(text), "%sERROR", title);
34 stline[stlen - 4] = '\0';
37 snprintf(text, sizeof(text), "%s%s°C", title, stline);
40 line_append_item(g, &s);