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:
parent
92b916ab47
commit
fdfb2b2804
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user