consistency, optminization
This commit is contained in:
@@ -16,19 +16,19 @@ struct memory_t {
|
||||
|
||||
struct disk_t {
|
||||
struct memory_t usage;
|
||||
char mountpoint[256];
|
||||
char mountpoint[64];
|
||||
};
|
||||
|
||||
struct network_t {
|
||||
uint32_t download;
|
||||
uint32_t upload;
|
||||
char device[32];
|
||||
char device[16];
|
||||
};
|
||||
|
||||
struct syssensors_t {
|
||||
uint16_t fan_speed[2]; // left and right cpu fans
|
||||
int16_t t_sensor; // ntc temp sensor
|
||||
char hwmon[128];
|
||||
char hwmon[64];
|
||||
};
|
||||
|
||||
void sys_get_time(struct time_date_t *td);
|
||||
@@ -42,6 +42,7 @@ void sys_get_disk(struct disk_t *disk);
|
||||
void sys_get_network(struct network_t *network);
|
||||
|
||||
void sys_detect(struct syssensors_t *s, const char *platform);
|
||||
|
||||
void sys_update_sensors(struct syssensors_t *s);
|
||||
|
||||
#endif // LINUXSMARTIE_SYS_H
|
||||
Reference in New Issue
Block a user