feat: lower loadavg threshold from 2.0 to 1.0 for triggering process listing in print_load

This commit is contained in:
retoor 2024-12-11 20:06:49 +00:00
parent 0508e85d30
commit c1626ef222
2 changed files with 1 additions and 1 deletions

BIN
dot

Binary file not shown.

2
dot.c
View File

@ -17,7 +17,7 @@ void print_load() {
perror("getloadavg failed");
return;
}
if(loadavg[0] > 2.0){
if(loadavg[0] > 1.0){
int result = system("ps aux | awk '$3 > 1.0' | sort -k3 -nr");
(void)result;
}