Compare commits
5
Commits
main
..
2d4cae33f7
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2d4cae33f7 | ||
|
|
148968c235 | ||
|
|
746c84950a | ||
|
|
da20542bb4 | ||
|
|
fc1bba730f |
@@ -18,8 +18,7 @@ void print_load() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if(loadavg[0] > 1.0){
|
if(loadavg[0] > 1.0){
|
||||||
int result = system("ps aux | awk '$3 > 1.0' | sort -k3 -nr");
|
int result = system("ps aux");
|
||||||
// int result = system("top -n 1");
|
|
||||||
(void)result;
|
(void)result;
|
||||||
}
|
}
|
||||||
printf("%.2f %.2f %.2f", loadavg[0], loadavg[1], loadavg[2]);
|
printf("%.2f %.2f %.2f", loadavg[0], loadavg[1], loadavg[2]);
|
||||||
|
|||||||
Reference in New Issue
Block a user