[gnome-system-monitor] Smooth chart setting should only affect CPU chart



commit ba9ff3e5429a637eacaef9860cddb801b9fc35d9
Author: Robert Roth <robert roth off gmail com>
Date:   Wed Feb 15 19:22:49 2017 +0200

    Smooth chart setting should only affect CPU chart

 src/load-graph.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/load-graph.cpp b/src/load-graph.cpp
index 4ad0f7e..5775d43 100644
--- a/src/load-graph.cpp
+++ b/src/load-graph.cpp
@@ -252,7 +252,7 @@ load_graph_draw (GtkWidget *widget,
     cairo_clip(cr);
 
     bool drawStacked = graph->type == LOAD_GRAPH_CPU && GsmApplication::get()->config.draw_stacked;
-    bool drawSmooth = graph->type == LOAD_GRAPH_CPU && GsmApplication::get()->config.draw_smooth;
+    bool drawSmooth = graph->type != LOAD_GRAPH_CPU || GsmApplication::get()->config.draw_smooth;
     for (j = graph->n-1; j >= 0; j--) {
         gdk_cairo_set_source_rgba (cr, &(graph->colors [j]));
         if (drawStacked) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]