Compare commits

..

3 Commits

2 changed files with 4 additions and 0 deletions

BIN
dot

Binary file not shown.

4
dot.c
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]);
} }