From 495fbca1afa1d3c44aa25afade24dfc092a8b709 Mon Sep 17 00:00:00 2001 From: retoor Date: Wed, 11 Dec 2024 21:04:49 +0100 Subject: [PATCH] Nicer autput. --- dot | Bin 18040 -> 18040 bytes dot.c | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/dot b/dot index 3a6fb288257e2eb39293843dca5b6fc871295b06..cb65f0d0590eaff7532d6474d79d1dad5dafb0a7 100755 GIT binary patch delta 525 zcmey-!}z0zaf1URrv(!O7+7rfWYlLAoS*>V!s*GKOz%a`u2*|(!~T!w?41iS+t=L^ zK31=CeRB`986V?>$%h3a8AT?`3RN(!m^@9$Up#@Af#F5azyJSzI-l(a8E$yMqgT{- z@*g2B#<?y!-qAKTz@)P{5reawAu0ku(no~@Y%owu!Q@S%nv9K`?}&PGP1aGct}iH7NGz>T zs8L8P&sI=ZF;=isFw`?p2MQGD7nLaJW*aN$<`pq8%$f-TC+!)fnXO}hP667$Fya0G z{}X_;!-xO>cL3=CAbkNye*n@Nj0_BnAOHU^0MZIT+6G8Fd1_bO;hJ^1whzZ#Io;KD8dqEvv`1c-mUo6MxBCfNYA4J;0l0|F5sE&<|-$&QNR zj0uw?6_pwHOs-Xw7CQh`DF{-+XTV?pq#gkAo%fU1DH<_$PJXB;&$wbUqmn)M<_z5# w?2IOp8BN_8Cv5gK<>vv$jw6fkHAruQO07EONT=6`?y!-qAKTwhpsKuk#^v~p2VLQeJljjJ_Gp23cBV5YJ zs4>|{G*$X27Xw4N^(TIT5ETI+>7&8{HW;X-eDWqyO-8rPcSJq8*b0gj5=$#4t0>rn zIWS5yTgL#c0P1Ae@&5n+2|zmI!~g#~fOG|rz5t{pKK}o&!N|a%38V{vv9A!8W W(KgZ1ob!YN&_EzKvH7CoauxuEDxYTn diff --git a/dot.c b/dot.c index 74bcb5e..a94cf6b 100644 --- a/dot.c +++ b/dot.c @@ -18,7 +18,7 @@ void print_load() { return; } if(loadavg[0] > 2.0){ - int result = system("ps aux"); + int result = system("ps aux | awk '$3 > 1.0' | sort -k3 -nr"); (void)result; } printf("%.2f %.2f %.2f", loadavg[0], loadavg[1], loadavg[2]);