psensor-server crash when no sensor is detected
When no sensor is detected, psensor-server crashes in static bool slog_open(const char *path, struct psensor **sensors)
.
fprintf(file, "I,%s,%s\n", t, VERSION); while (*sensors) { // null pointer here fprintf(file, "S,%s,%x\n", (*sensors)->id, (*sensors)->type); sensors++;
It still makes sense to run program even when no sensor is detected.
For example, seeing uptime, CPU, RAM, and CPU graph still makes sense, even on a machine where no temperature or other sensor is available.
Will offer merge request.