mbpfan-josie

Rewrite confusing conditional

9034e1f843a2cae7d16cf3eda823db86efdfb509
Andrew Gaul <andrew@gaul.org> · 2017-07-13T17:04 · browse files at this commit

parents: 5f2da79

diff --git a/src/mbpfan.c b/src/mbpfan.c
index a9cd563..c9d2596 100644
--- a/src/mbpfan.c
+++ b/src/mbpfan.c
@@ -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);