hyptop: increase initial update interval

Increase initial update interval from 200ms to 1 seconds to avoid
fluctuations on the initial data output.

Signed-off-by: Mete Durlu <meted@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
Mete Durlu
2022-06-10 10:13:33 +02:00
committed by Jan Höppner
parent 26148740df
commit 80e54ac888
2 changed files with 2 additions and 2 deletions

View File

@@ -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
/*

View File

@@ -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;