summaryrefslogtreecommitdiff
path: root/multiload/global.h
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-07-14 11:35:07 +0200
committerraveit65 <[email protected]>2020-07-29 19:28:08 +0200
commit3733313e90b81cb171d3ece44c537c435f42c090 (patch)
tree659c45ad69490ab6f6191b48eac88834bee8aab7 /multiload/global.h
parent1dafc4423968a404273e4a9372b42bad8390bad3 (diff)
downloadmate-applets-3733313e90b81cb171d3ece44c537c435f42c090.tar.bz2
mate-applets-3733313e90b81cb171d3ece44c537c435f42c090.tar.xz
multiload: Display the percentage used accurately on tooltip
Diffstat (limited to 'multiload/global.h')
-rw-r--r--multiload/global.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/multiload/global.h b/multiload/global.h
index 3f1aa69b..635c9652 100644
--- a/multiload/global.h
+++ b/multiload/global.h
@@ -76,11 +76,20 @@ struct _MultiloadApplet
GtkWidget *notebook;
int last_clicked;
- long cpu_time [NCPUSTATES];
- long cpu_last [NCPUSTATES];
- int cpu_initialized;
+ float cpu_used_ratio;
+ long cpu_time [NCPUSTATES];
+ long cpu_last [NCPUSTATES];
+ int cpu_initialized;
double loadavg1;
+
+ float memload_user_ratio;
+ float memload_cache_ratio;
+
+ float swapload_used_ratio;
+
+ float diskload_used_ratio;
+
NetSpeed *netspeed_in;
NetSpeed *netspeed_out;
guint net_threshold1;