fixed checking of the thread creation.
authorJean-Philippe Orsini <jeanfi@gmail.com>
Sat, 23 Aug 2014 11:42:42 +0000 (13:42 +0200)
committerJean-Philippe Orsini <jeanfi@gmail.com>
Sat, 23 Aug 2014 11:42:42 +0000 (13:42 +0200)
src/main.c

index 811893c..258b58b 100644 (file)
@@ -593,7 +593,7 @@ int main(int argc, char **argv)
 
        ret = pthread_create(&thread, NULL, update_measures, &ui);
 
-       if (!ret)
+       if (ret)
                log_err(_("Failed to create thread for monitoring sensors"));
 
        ui.graph_update_interval = ui.config->graph_update_interval;