summaryrefslogtreecommitdiff
path: root/multiload/src/global.h
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-12-16 21:28:46 +0100
committerVictor Kareh <[email protected]>2020-12-17 07:29:54 -0500
commitc85a5cf5f08bee3706c0a450a971bfcdd2938a0d (patch)
tree9b9a238e4b0c4ee51bca59d0d6e41cf27170e68d /multiload/src/global.h
parent99d50b247e1ec9714ff5922cea60a29d1a864ff0 (diff)
downloadmate-applets-c85a5cf5f08bee3706c0a450a971bfcdd2938a0d.tar.bz2
mate-applets-c85a5cf5f08bee3706c0a450a971bfcdd2938a0d.tar.xz
multiload: use guint64 as data source for graphs
Diffstat (limited to 'multiload/src/global.h')
-rw-r--r--multiload/src/global.h29
1 files changed, 15 insertions, 14 deletions
diff --git a/multiload/src/global.h b/multiload/src/global.h
index 29771369..7b5db895 100644
--- a/multiload/src/global.h
+++ b/multiload/src/global.h
@@ -37,7 +37,7 @@ G_BEGIN_DECLS
typedef struct _MultiloadApplet MultiloadApplet;
typedef struct _LoadGraph LoadGraph;
-typedef void (*LoadGraphDataFunc) (int, int [], LoadGraph *);
+typedef void (*LoadGraphDataFunc) (guint64, guint64 [], LoadGraph *);
#include "netspeed.h"
@@ -85,18 +85,19 @@ typedef enum {
struct _LoadGraph {
MultiloadApplet *multiload;
- guint n, id;
+ guint n;
+ gint id;
guint speed, size;
guint orient, pixel_size;
- guint draw_width, draw_height;
+ gsize draw_width;
+ guint64 draw_height;
LoadGraphDataFunc get_data;
guint allocated;
GdkRGBA *colors;
- gint **data;
- guint data_size;
- guint *pos;
+ guint64 **data;
+ guint64 *pos;
GtkWidget *main_widget;
GtkWidget *frame, *box, *disp;
@@ -129,12 +130,12 @@ struct _MultiloadApplet
GtkWidget *check_boxes [graph_n];
GtkWidget *prop_dialog;
GtkWidget *notebook;
- int last_clicked;
+ gint last_clicked;
- float cpu_used_ratio;
- long cpu_time [cpuload_n];
- long cpu_last [cpuload_n];
- int cpu_initialized;
+ float cpu_used_ratio;
+ guint64 cpu_time [cpuload_n];
+ guint64 cpu_last [cpuload_n];
+ gboolean cpu_initialized;
double loadavg1;
@@ -149,9 +150,9 @@ struct _MultiloadApplet
NetSpeed *netspeed_in;
NetSpeed *netspeed_out;
- guint net_threshold1;
- guint net_threshold2;
- guint net_threshold3;
+ guint64 net_threshold1;
+ guint64 net_threshold2;
+ guint64 net_threshold3;
};
#include "load-graph.h"