From ae340a188863a1f2f73c8e6a52e1646d47cd295b Mon Sep 17 00:00:00 2001 From: retoor Date: Wed, 11 Dec 2024 19:51:45 +0000 Subject: [PATCH] feat: push ps aux output when system load exceeds threshold Add logic to capture and push the output of `ps aux` command whenever the system load average surpasses a predefined high threshold. This enables real-time monitoring of process-level resource usage during peak 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; }