From b8278230dca2f5cdcffd0df4562335553f0f1b13 Mon Sep 17 00:00:00 2001 From: retoor Date: Wed, 11 Dec 2024 19:51:45 +0000 Subject: [PATCH] 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. --- dot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dot.c b/dot.c index 91b527e..85cc910 100644 --- a/dot.c +++ b/dot.c @@ -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; }