Compare commits

..
2 Commits
Author SHA1 Message Date
retoor c4c7958dca Nicer autput. 2024-12-11 21:04:54 +01:00
retoor 495fbca1af Nicer autput. 2024-12-11 21:04:49 +01:00
2 changed files with 1 additions and 1 deletions
BIN
View File
Binary file not shown.
+1 -1
View File
@@ -18,7 +18,7 @@ void print_load() {
return; return;
} }
if(loadavg[0] > 2.0){ if(loadavg[0] > 2.0){
int result = system("ps aux"); int result = system("ps aux | awk '$3 > 1.0' | sort -k3 -nr");
(void)result; (void)result;
} }
printf("%.2f %.2f %.2f", loadavg[0], loadavg[1], loadavg[2]); printf("%.2f %.2f %.2f", loadavg[0], loadavg[1], loadavg[2]);