From 21453eabacac49159f609c7d551df49aa16f86ad Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Mon, 25 Jul 2022 22:11:24 +0200 Subject: [PATCH] Change load to one value --- dwmstatus.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dwmstatus.c b/dwmstatus.c index 1225088..27850ea 100644 --- a/dwmstatus.c +++ b/dwmstatus.c @@ -86,10 +86,10 @@ loadavg(void) { double avgs[3]; - if (getloadavg(avgs, 3) < 0) + if (getloadavg(avgs, 1) < 0) return smprintf(""); - return smprintf("%.2f %.2f %.2f", avgs[0], avgs[1], avgs[2]); + return smprintf("%.2f", avgs[0]); } char * @@ -195,7 +195,7 @@ main(void) t0 = gettemperature("/sys/class//hwmon/hwmon1", "temp1_input"); bat = getbattery("/sys/class/power_supply/BAT0"); - status = smprintf("🔋 %s 🌡 %s | Load: %s | %s", + status = smprintf("🔋 %s 🌡 %s 📈 %s | %s", bat, t0, avgs, tmbln); setstatus(status);