renamed enabled => graph_enabled
[psensor.git] / src / graph.c
index 0203903..71e8396 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2010-2012 jeanfi@gmail.com
+ * Copyright (C) 2010-2013 jeanfi@gmail.com
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License as
@@ -359,7 +359,7 @@ graph_update(struct psensor **sensors,
                while (*sensor_cur) {
                        struct psensor *s = *sensor_cur;
 
-                       if (s->enabled) {
+                       if (s->graph_enabled) {
                                no_graphs = 0;
                                if (is_fan_type(s->type)) {
                                        min = min_rpm;
@@ -385,7 +385,9 @@ graph_update(struct psensor **sensors,
                }
 
                if (no_graphs)
-                       display_no_graphs_warning(cr, g_xoff + 12, g_height /2);
+                       display_no_graphs_warning(cr,
+                                                 g_xoff + 12,
+                                                 g_height / 2);
        }
 
        cr_pixmap = gdk_cairo_create(gtk_widget_get_window(w_graph));