diff options
author | marosg42 <[email protected]> | 2017-11-07 13:17:11 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2017-11-09 10:12:05 +0100 |
commit | 721ebf78ef40742141dbad9258b26c70c30e233e (patch) | |
tree | 357f5de0151fb9f05fb278098c43b0df0cb203ab | |
parent | d0abc327883d8510679ebac9778d9579b11449e9 (diff) | |
download | mate-applets-721ebf78ef40742141dbad9258b26c70c30e233e.tar.bz2 mate-applets-721ebf78ef40742141dbad9258b26c70c30e233e.tar.xz |
Update tooltips with latest values
Solving issue #283
-rw-r--r-- | multiload/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/multiload/main.c b/multiload/main.c index 151c3dca..0ba7cda9 100644 --- a/multiload/main.c +++ b/multiload/main.c @@ -294,8 +294,8 @@ multiload_applet_tooltip_update(LoadGraph *g) if (!strncmp(g->name, "memload", strlen("memload"))) { guint mem_user, mem_cache, user_percent, cache_percent; - mem_user = g->data[0][0]; - mem_cache = g->data[0][1] + g->data[0][2] + g->data[0][3]; + mem_user = g->data[1][0]; + mem_cache = g->data[1][1] + g->data[1][2] + g->data[1][3]; user_percent = 100.0f * mem_user / g->draw_height; cache_percent = 100.0f * mem_cache / g->draw_height; user_percent = MIN(user_percent, 100); @@ -331,7 +331,7 @@ multiload_applet_tooltip_update(LoadGraph *g) guint i, total_used, percent; for (i = 0, total_used = 0; i < (g->n - 1); i++) - total_used += g->data[0][i]; + total_used += g->data[1][i]; percent = 100.0f * total_used / g->draw_height; percent = MIN(percent, 100); |