spoon

set dwm status
git clone git://git.2f30.org/spoon
Log | Files | Refs | LICENSE

commit 539ec046cefa273e60a99d53415df6678ee24455
parent 5dd39d54cc2786fbb8f6d559943357dc59541567
Author: lostd <lostd@2f30.org>
Date:   Fri, 20 May 2016 23:26:46 +0100

Frequency units are part of the plugin

Diffstat:
Mspoon.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/spoon.c b/spoon.c @@ -30,7 +30,7 @@ struct ent { /* reorder this if you want */ { .fmt = "[%s] ", .read = mpdread }, { .fmt = "[%s] ", .read = xkblayoutread }, - { .fmt = "[%sMHz] ", .read = cpuread }, + { .fmt = "[%s] ", .read = cpuread }, { .fmt = "[%s] ", .read = tempread }, { .fmt = "%s ", .read = battread }, { .fmt = "%s ", .read = wifiread }, @@ -106,7 +106,7 @@ cpuread(char *buf, size_t len) sz = sizeof(cpuspeed); if (sysctl(mib, 2, &cpuspeed, &sz, NULL, 0) < 0) return -1; - snprintf(buf, len, "%4d", cpuspeed); + snprintf(buf, len, "%4dMHz", cpuspeed); return 0; }