* dwmstatus for OpenBSD
       
   URI git clone git://git.codevoid.de/dwmstatus-sdk
   DIR Log
   DIR Files
   DIR Refs
   DIR LICENSE
       ---
   DIR commit 57615c0334a3e8f561aab7cfef1777600fa24392
   DIR parent e276c5ff75309f5a904bea54427f5bd871527f8b
   URI Author: Stefan Hagen <sh+git[at]codevoid[dot]de>
       Date:   Mon, 21 May 2018 11:07:10 +0200
       
       Adding back the loadavg (5 min only)
       
       Diffstat:
         M dwmstatus.c                         |       8 ++++----
       
       1 file changed, 4 insertions(+), 4 deletions(-)
       ---
   DIR diff --git a/dwmstatus.c b/dwmstatus.c
       @@ -82,7 +82,7 @@ getsysctl(char *input_str) {
        }
        
        /* Use FreeBSDs mixer device to determine the master
       - * volume. Returns the volume %.
       + * volume. Returns the volume % as int.
         */
        char *
        getvolume(char *mixerpath) {
       @@ -106,7 +106,6 @@ getvolume(char *mixerpath) {
            return smprintf("%i", vol & 0x7f);
        } 
        
       -
        void
        settz(char *tzname)
        {
       @@ -149,7 +148,8 @@ loadavg(void)
            if (getloadavg(avgs, 3) < 0)
                return smprintf("");
        
       -    return smprintf("%.2f %.2f %.2f", avgs[0], avgs[1], avgs[2]);
       +    // return smprintf("%.2f %.2f %.2f", avgs[0], avgs[1], avgs[2]);
       +    return smprintf("%.2f", avgs[0]);
        }
        
        char *
       @@ -263,7 +263,7 @@ void update() {
            datetime = mktimes("%d.%m.%Y %H:%M", tzberlin);
        
            // assemble and display
       -    status   = smprintf(" CPU:%s°C BAT:%s%% VOL:%s | %s ", cputemp, battery, volume, datetime);
       +    status   = smprintf(" LOAD:%s TEMP:%s°C BAT:%s%% VOL:%s | %s ", loadavg(), cputemp, battery, volume, datetime);
            setstatus(status);
        
            free(volume);