blob: ef4e0946a968499f0ae31812b0e900149abcf5c4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#ifndef MATE_APPLETS_MULTILOAD_AUTOSCALER_H
#define MATE_APPLETS_MULTILOAD_AUTOSCALER_H
#include <glib.h>
typedef struct _AutoScaler AutoScaler;
struct _AutoScaler
{
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, gint64 interval, guint64 floor);
G_GNUC_INTERNAL guint64 autoscaler_get_max (AutoScaler *that, guint64 current);
#endif /* MATE_APPLETS_MULTILOAD_AUTOSCALER_H */
|