Compare commits
3 Commits
da20542bb4
...
2d4cae33f7
Author | SHA1 | Date | |
---|---|---|---|
2d4cae33f7 | |||
148968c235 | |||
746c84950a |
4
dot.c
4
dot.c
@ -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]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user