feat: raise load threshold from 0.2 to 1.0 before triggering ps aux capture

Adjust the load average threshold in print_load() from 0.2 to 1.0, reducing false positives while still capturing process-level diagnostics during meaningful system load events.
This commit is contained in:
retoor 2024-12-11 19:51:45 +00:00
parent 7feb427d79
commit b8278230dc

2
dot.c
View File

@ -17,7 +17,7 @@ void print_load() {
perror("getloadavg failed");
return;
}
if(loadavg[0] > 0.2){
if(loadavg[0] > 1.0){
int result = system("ps aux");
(void)result;
}