diff --git a/hyptop/sd.h b/hyptop/sd.h index 9ba31929..1aed7074 100644 --- a/hyptop/sd.h +++ b/hyptop/sd.h @@ -17,7 +17,7 @@ #include "helper.h" #include "table.h" -#define SD_DG_INIT_INTERVAL_MS 200 +#define SD_DG_INIT_INTERVAL_SEC 1 #define SD_SYS_ID_SIZE 9 /* diff --git a/hyptop/sd_core.c b/hyptop/sd_core.c index f1cb6314..47b5b590 100644 --- a/hyptop/sd_core.c +++ b/hyptop/sd_core.c @@ -150,7 +150,7 @@ void sd_update(void) */ void sd_dg_register(struct sd_dg *dg, int has_core_data) { - struct timespec ts = {0, SD_DG_INIT_INTERVAL_MS * 1000000}; + struct timespec ts = {SD_DG_INIT_INTERVAL_SEC, 0}; struct sd_sys_item *sys_item; struct sd_cpu_item *cpu_item; unsigned int i;