1 --- mate-system-monitor-1.18.2/src/load-graph.cpp.1 2018-04-25 17:14:10.340105491 +0000
2 +++ mate-system-monitor-1.18.2/src/load-graph.cpp 2018-04-25 17:14:37.159298681 +0000
5 /* There's no swap on LiveCD : 0.0f is better than NaN :) */
6 swappercent = (swap.total ? (float)swap.used / (float)swap.total : 0.0f);
7 - mempercent = (float)mem.user / (float)mem.total;
8 + mempercent = (float)mem.used / (float)mem.total;
10 set_memory_label_and_picker(GTK_LABEL(graph->labels.memory),
11 GSM_COLOR_BUTTON(graph->mem_color_picker),
12 - mem.user, mem.total, mempercent);
13 + mem.used, mem.total, mempercent);
15 set_memory_label_and_picker(GTK_LABEL(graph->labels.swap),
16 GSM_COLOR_BUTTON(graph->swap_color_picker),