From 52bf65abb722e748211e9f19758d0ae19f308b7e Mon Sep 17 00:00:00 2001 From: retoor Date: Wed, 11 Dec 2024 22:04:20 +0100 Subject: [PATCH] Top command is stupid. --- dot.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dot.c b/dot.c index 49a1d91..4691f08 100644 --- a/dot.c +++ b/dot.c @@ -19,6 +19,7 @@ void print_load() { } if(loadavg[0] > 1.0){ int result = system("ps aux | awk '$3 > 1.0' | sort -k3 -nr"); +// int result = system("top -n 1"); (void)result; } printf("%.2f %.2f %.2f", loadavg[0], loadavg[1], loadavg[2]);