Compare commits
No commits in common. "2d4cae33f737b04d5eee737809609a4e39aee7ad" and "da20542bb4f78423f39e89922d7535a38efeb378" have entirely different histories.
2d4cae33f7
...
da20542bb4
4
dot.c
4
dot.c
@ -17,10 +17,6 @@ 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