4 The linux part is complete and the other OS's parts are more or less non-existing.
6 If you use another OS like *BSD, OS X or some unix and are
7 interested to make this work on your machine look at status_<your_os>.c and see what is
8 needed to be done, please mail me and we can try to make implement the missning parts.
14 #include "../config.h"
17 #include "status_linux.h"
21 #include "status_freebsd.h"
25 #include "status_darwin.h"
29 #define SENSORS_TEMP1 1
30 #define SENSORS_TEMP2 2
31 #define SENSORS_TEMP3 3
32 #define SENSORS_TEMP4 4
33 #define SENSORS_FAN1 5
34 #define SENSORS_FAN2 6
35 #define SENSORS_FAN3 7
38 #define SENSORS_CURRENT 1
39 #define SENSORS_LIMIT 2
40 #define SENSORS_HYSTERESIS 3
50 #define NET_X NET_SENT+1
51 #define NET_Y NET_PPP0+1
54 void status_init(void);
56 /* Frees and such stuff done by init */
57 void status_exit(void);
59 /* Reports status of Fans, Thermometers and such stuff */
60 int status_sensors(int);
62 /* Swap disk usage in % */
63 int status_swap(void);
65 /* Disc space usage in % */
66 int status_disc(char *);
68 /* CPU load in % - Smoothed down */
71 /* Memory usage in % */
74 /* Network devices usage. Returned is the bytes transfered betwen this and the
76 int status_net(int, int);