summaryrefslogtreecommitdiff
path: root/multiload/src/autoscaler.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/autoscaler.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/autoscaler.h')
-rw-r--r--multiload/src/autoscaler.h20
1 files changed, 8 insertions, 12 deletions
diff --git a/multiload/src/autoscaler.h b/multiload/src/autoscaler.h
index d0ae4cd6..ef4e0946 100644
--- a/multiload/src/autoscaler.h
+++ b/multiload/src/autoscaler.h
@@ -2,25 +2,21 @@
#define MATE_APPLETS_MULTILOAD_AUTOSCALER_H
#include <glib.h>
-#include <time.h>
typedef struct _AutoScaler AutoScaler;
struct _AutoScaler
{
- /* const */ unsigned update_interval;
- /* const */ unsigned floor;
- unsigned max;
- unsigned count;
- time_t last_update;
- float sum;
+ gint64 update_interval;
+ gint64 last_update;
+ guint64 floor;
+ guint64 max;
+ guint64 count;
+ guint64 sum;
float last_average;
};
-
-G_GNUC_INTERNAL void autoscaler_init(AutoScaler *that, unsigned interval, unsigned floor);
-
-G_GNUC_INTERNAL unsigned autoscaler_get_max(AutoScaler *that, unsigned current);
-
+G_GNUC_INTERNAL void autoscaler_init (AutoScaler *that, gint64 interval, guint64 floor);
+G_GNUC_INTERNAL guint64 autoscaler_get_max (AutoScaler *that, guint64 current);
#endif /* MATE_APPLETS_MULTILOAD_AUTOSCALER_H */