werent using date, reconsider how time/date works
This commit is contained in:
@@ -3,10 +3,8 @@
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
struct time_date_t {
|
||||
char date[12];
|
||||
char time[12];
|
||||
};
|
||||
#define SYS_GET_TIME_STR(t) sys_get_time_string((char[16]){0}, 16, t)
|
||||
#define SYS_GET_DATE_STR(t) sys_get_date_string((char[16]){0}, 16, t)
|
||||
|
||||
struct memory_t {
|
||||
uint64_t free;
|
||||
@@ -28,10 +26,12 @@ struct network_t {
|
||||
struct syssensors_t {
|
||||
char hwmon[64];
|
||||
// uint16_t fan_speed[1]; // just one fan (pump) we monitor
|
||||
int16_t t_sensor; // ntc temp sensor
|
||||
int16_t t_sensor; // ntc temp sensor
|
||||
};
|
||||
|
||||
void sys_get_time(struct time_date_t *td);
|
||||
char *sys_get_time_string(char *buf, size_t bufsz, time_t t);
|
||||
|
||||
char *sys_get_date_string(char *buf, size_t bufsz, time_t t);
|
||||
|
||||
void sys_get_load_avg(double *load_avg);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user