Skip to content

Commit 9034e1f

Browse files
committed
Rewrite confusing conditional
1 parent 5f2da79 commit 9034e1f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/mbpfan.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ t_sensors *retrieve_sensors()
222222
}
223223
}
224224

225-
if (!sensors_found > 0){
225+
if (sensors_found == 0){
226226
syslog(LOG_CRIT, "mbpfan could not detect any temp sensor. Please contact the developer.\n");
227227
printf("mbpfan could not detect any temp sensor. Please contact the developer.\n");
228228
exit(EXIT_FAILURE);

0 commit comments

Comments
 (0)