From fdfb2b2804786c753e40487c2edfbd91f6483d74 Mon Sep 17 00:00:00 2001 From: buxiasen Date: Tue, 4 Jun 2024 17:33:51 +0800 Subject: [PATCH] cpuload: make load more accurate The 10 times is too short and can only support 10% step, make cpuload delay based on 100 times, can decrease the influence of sched cost. Signed-off-by: buxiasen --- testing/cpuload/cpuload_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/cpuload/cpuload_main.c b/testing/cpuload/cpuload_main.c index c4f49206f..09cbf10e6 100644 --- a/testing/cpuload/cpuload_main.c +++ b/testing/cpuload/cpuload_main.c @@ -40,7 +40,7 @@ # define CPULOAD_US (USEC_PER_SEC / CLOCKS_PER_SEC) #endif -#define CPULOAD_DELAY (10 * CPULOAD_US) +#define CPULOAD_DELAY (100 * CPULOAD_US) /**************************************************************************** * Private Functions