From 1be6df7bde349357e5a0ff52bec9146a1d22d067 Mon Sep 17 00:00:00 2001 From: retoor Date: Wed, 11 Dec 2024 21:04:20 +0000 Subject: [PATCH] chore: remove top command due to lack of utility and clarity --- 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]);