From c6d270495cf6872bcb252dcddaa054eb3e3fbe3b Mon Sep 17 00:00:00 2001 From: Peter Cai Date: Fri, 16 Sep 2022 17:04:28 -0400 Subject: [PATCH] [DNM] cputree: correct conversion to nanoseconds --- cputree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cputree.c b/cputree.c index 791b0bc..c195ec9 100644 --- a/cputree.c +++ b/cputree.c @@ -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);