From 9a692128ab1838c88b04c5c82f027bebdb73481a Mon Sep 17 00:00:00 2001 From: Andrew Gaul Date: Thu, 13 Jul 2017 17:04:03 -0700 Subject: [PATCH] Rewrite confusing conditional --- src/mbpfan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mbpfan.c b/src/mbpfan.c index a9cd563..352c925 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);