Skip to content

Commit

Permalink
Rewrite confusing conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
gaul committed Jul 14, 2017
1 parent 5f2da79 commit 9034e1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mbpfan.c
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ t_sensors *retrieve_sensors()
}
}

if (!sensors_found > 0){
if (sensors_found == 0){
syslog(LOG_CRIT, "mbpfan could not detect any temp sensor. Please contact the developer.\n");
printf("mbpfan could not detect any temp sensor. Please contact the developer.\n");
exit(EXIT_FAILURE);
Expand Down

0 comments on commit 9034e1f

Please sign in to comment.