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 <buxiasen@xiaomi.com>
This commit is contained in:
buxiasen 2024-06-04 17:33:51 +08:00 committed by Xiang Xiao
parent 92b916ab47
commit fdfb2b2804

View File

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