tFrequency units are part of the plugin - spoon - dwm status utility (2f30 fork) | |
git clone git://src.adamsgaard.dk/spoon | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit 539ec046cefa273e60a99d53415df6678ee24455 | |
parent 5dd39d54cc2786fbb8f6d559943357dc59541567 | |
Author: lostd <[email protected]> | |
Date: Fri, 20 May 2016 23:26:46 +0100 | |
Frequency units are part of the plugin | |
Diffstat: | |
M spoon.c | 4 ++-- | |
1 file changed, 2 insertions(+), 2 deletions(-) | |
--- | |
diff --git a/spoon.c b/spoon.c | |
t@@ -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 }, | |
t@@ -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; | |
} | |