* dwmstatus for OpenBSD
       
   URI git clone git://git.codevoid.de/dwmstatus-sdk
   DIR Log
   DIR Files
   DIR Refs
   DIR LICENSE
       ---
   DIR commit 8d73323fbabab911e9fc12c40d6367c9e762d3a4
   DIR parent 57615c0334a3e8f561aab7cfef1777600fa24392
   URI Author: Stefan Hagen <sh+git[at]codevoid[dot]de>
       Date:   Wed, 23 May 2018 22:15:13 +0200
       
       Add cpufreq
       
       Diffstat:
         M dwmstatus.c                         |       5 ++++-
       
       1 file changed, 4 insertions(+), 1 deletion(-)
       ---
   DIR diff --git a/dwmstatus.c b/dwmstatus.c
       @@ -241,11 +241,13 @@ void update() {
            char *status;
            char *datetime;
            char *cputemp;
       +    char *cpufreq;
            char *battery;
            char *volume;
        
            // cpu temperature
            cputemp  = smprintf("%i", ZEROCTOC((int)getsysctl("hw.acpi.thermal.tz0.temperature")));
       +    cpufreq  = smprintf("%i", getsysctl("dev.cpu.0.freq"));
        
            // battery
            battery  = smprintf("%i", getsysctl("hw.acpi.battery.life"));
       @@ -263,12 +265,13 @@ void update() {
            datetime = mktimes("%d.%m.%Y %H:%M", tzberlin);
        
            // assemble and display
       -    status   = smprintf(" LOAD:%s TEMP:%s°C BAT:%s%% VOL:%s | %s ", loadavg(), cputemp, battery, volume, datetime);
       +    status   = smprintf(" LOAD:%s TEMP:%s°C FREQ:%sMhz BAT:%s%% VOL:%s | %s ", loadavg(), cputemp, cpufreq, battery, volume, datetime);
            setstatus(status);
        
            free(volume);
            free(battery);
            free(cputemp);
       +    free(cpufreq);
            free(datetime);
            free(status);
        }