[DNM] cputree: correct conversion to nanoseconds
This commit is contained in:
parent
69d0a87e2f
commit
c6d270495c
1 changed files with 1 additions and 1 deletions
|
@ -321,7 +321,7 @@ static void do_one_cpu(char *path)
|
|||
|
||||
cpu->number = strtoul(&path[27], NULL, 10);
|
||||
|
||||
cpu->max_load = SLEEP_INTERVAL * 1000 * 1000; // SLEEP_INTERVAL in nanoseconds, should be a good enough approximation
|
||||
cpu->max_load = SLEEP_INTERVAL * 1000 * 1000 * 1000; // SLEEP_INTERVAL in nanoseconds, should be a good enough approximation
|
||||
|
||||
cpu_set(cpu->number, cpu_online_map);
|
||||
|
||||
|
|
Loading…
Reference in a new issue