From ec5c35ec9f23254f09e734d0c1880559774dfa52 Mon Sep 17 00:00:00 2001 From: Aaron Marcher Date: Mon, 21 May 2018 00:16:54 +0200 Subject: Remove units from numbers This is a first step to decouple formatting from information because of two reasons: 1. The components should only gather and return the values by design 2. Fine grained user control should be a focus Scaling will be implemented in a different way in a later commit. --- components/volume.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'components/volume.c') diff --git a/components/volume.c b/components/volume.c index 0bfbe08..8674211 100644 --- a/components/volume.c +++ b/components/volume.c @@ -42,5 +42,5 @@ vol_perc(const char *card) close(afd); - return bprintf("%d%%", v & 0xff); + return bprintf("%d", v & 0xff); } -- cgit v1.2.3