The y axis label in the CPU history graph (Resources tab) is not
normalised properly and it is wrongly made dependent on the "divide
CPU usage by CPU count" option in the Preferences.

The option "divide CPU usage by CPU count" should only affect the
Processes view and not the Resources view. 

Signed-off-by: Guido Trentalancia <guido@trentalancia.net>
---
 src/load-graph.cpp |    6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

--- gnome-system-monitor-3.20.1-orig/src/load-graph.cpp	2016-05-18 21:49:48.201926185 +0200
+++ gnome-system-monitor-3.20.1/src/load-graph.cpp	2016-05-18 22:36:05.631588860 +0200
@@ -119,11 +119,7 @@ void draw_background(LoadGraph *graph) {
             caption = g_strdup(captionstr.c_str());
         } else {
             // operation orders matters so it's 0 if i == num_bars
-            guint max = 100;
-            if (graph->type == LOAD_GRAPH_CPU && !GsmApplication::get()->config.solaris_mode) {
-                max = 100 * graph->n;
-            }
-            caption = g_strdup_printf("%d %%", max - i * (max / num_bars));
+            caption = g_strdup_printf("%d %%", 100 - i * (100 / num_bars));
         }
         pango_layout_set_alignment (layout, PANGO_ALIGN_LEFT);
         pango_layout_set_text (layout, caption, -1);
