Compare commits
2 Commits
df74604bfa
...
c4c7958dca
Author | SHA1 | Date | |
---|---|---|---|
c4c7958dca | |||
495fbca1af |
2
dot.c
2
dot.c
@ -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]);
|
||||||
|
Loading…
Reference in New Issue
Block a user