[DNM] cputree: correct conversion to nanoseconds

This commit is contained in:
Peter Cai 2022-09-16 17:04:28 -04:00
parent 69d0a87e2f
commit c6d270495c
1 changed files with 1 additions and 1 deletions

View File

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