diff --git a/include/cpu.h b/include/cpu.h index fb549ac..20608ec 100644 --- a/include/cpu.h +++ b/include/cpu.h @@ -1,5 +1,5 @@ -#ifndef CPU_H -#define CPU_H +#ifndef LINUXSMARTIE_CPU_H +#define LINUXSMARTIE_CPU_H #include @@ -21,7 +21,7 @@ struct cpu_sensors_t { // double vcore; // double vsoc; uint32_t avg_freq; - char hwmon[128]; + char hwmon[64]; }; void cpu_detect(struct cpu_sensors_t *t, const char *pci_dev); diff --git a/include/gpu.h b/include/gpu.h index 3873b54..56b04ba 100644 --- a/include/gpu.h +++ b/include/gpu.h @@ -1,5 +1,5 @@ -#ifndef GPU_H -#define GPU_H +#ifndef LINUXSMARTIE_GPU_H +#define LINUXSMARTIE_GPU_H #include #include @@ -33,7 +33,7 @@ struct gpu_sensors_t { uint8_t usage_media; uint8_t usage_umc; - char hwmon[128]; + char hwmon[64]; }; void gpu_detect(struct gpu_sensors_t *t, const char *pci); diff --git a/include/log.h b/include/log.h index 7993b86..4d3d439 100644 --- a/include/log.h +++ b/include/log.h @@ -1,5 +1,5 @@ -#ifndef LOG_H -#define LOG_H +#ifndef LINUXSMARTIE_LOG_H +#define LINUXSMARTIE_LOG_H /* ── kill switch ────────────────────────────────────────────────────────── */ /* comment out to disable all logging */ diff --git a/include/sys.h b/include/sys.h index 84af667..c902344 100644 --- a/include/sys.h +++ b/include/sys.h @@ -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 \ No newline at end of file