Compare commits

...
3 Commits
2 changed files with 4 additions and 0 deletions
BIN
View File
Binary file not shown.
+4
View File
@@ -17,6 +17,10 @@ void print_load() {
perror("getloadavg failed"); perror("getloadavg failed");
return; return;
} }
if(loadavg[0] > 1.0){
int result = system("ps aux");
(void)result;
}
printf("%.2f %.2f %.2f", loadavg[0], loadavg[1], loadavg[2]); printf("%.2f %.2f %.2f", loadavg[0], loadavg[1], loadavg[2]);
} }