From 3f976aabc08dd7d4762b0e04f0cbe8550f0e3ced Mon Sep 17 00:00:00 2001 From: Aaron Marcher Date: Mon, 9 Jan 2017 12:05:29 +0100 Subject: Makefile fix and vol_perc fix for mute --- slstatus.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'slstatus.c') diff --git a/slstatus.c b/slstatus.c index 6d2e89e..89186d6 100644 --- a/slstatus.c +++ b/slstatus.c @@ -658,9 +658,7 @@ vol_perc(const char *card) } close(afd); - if (v == 0) { - return smprintf("mute"); - } + return smprintf("%d%%", v & 0xff); } -- cgit v1.2.3