summaryrefslogtreecommitdiff
path: root/multiload/global.h
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-07-15 01:04:01 +0200
committerraveit65 <[email protected]>2020-07-26 11:11:51 +0200
commit626b731a6bcd701bf16b1164972eb11af344271c (patch)
tree65562f149820cf96cc8e8b14faa82fd97fba2c2b /multiload/global.h
parente1e531145476d424ef7a882447fd411d18a974e8 (diff)
downloadmate-applets-626b731a6bcd701bf16b1164972eb11af344271c.tar.bz2
mate-applets-626b731a6bcd701bf16b1164972eb11af344271c.tar.xz
multiload: Do not add the same global variables within all graphs
Diffstat (limited to 'multiload/global.h')
-rw-r--r--multiload/global.h23
1 files changed, 11 insertions, 12 deletions
diff --git a/multiload/global.h b/multiload/global.h
index 606db7e4..ea8b6330 100644
--- a/multiload/global.h
+++ b/multiload/global.h
@@ -42,18 +42,6 @@ struct _LoadGraph {
gint show_frame;
- long cpu_time [NCPUSTATES];
- long cpu_last [NCPUSTATES];
- int cpu_initialized;
-
- double loadavg1;
- NetSpeed *netspeed_in;
- NetSpeed *netspeed_out;
- guint net_threshold;
- guint net_threshold1;
- guint net_threshold2;
- guint net_threshold3;
-
gboolean visible;
gboolean tooltip_update;
const gchar *name;
@@ -81,6 +69,17 @@ struct _MultiloadApplet
GtkWidget *prop_dialog;
GtkWidget *notebook;
int last_clicked;
+
+ long cpu_time [NCPUSTATES];
+ long cpu_last [NCPUSTATES];
+ int cpu_initialized;
+
+ double loadavg1;
+ NetSpeed *netspeed_in;
+ NetSpeed *netspeed_out;
+ guint net_threshold1;
+ guint net_threshold2;
+ guint net_threshold3;
};
#include "load-graph.h"