all repos — slstatus @ 3f976aabc08dd7d4762b0e04f0cbe8550f0e3ced

my build of slstatus (tools.suckless.org/slstatus/)

Makefile fix and vol_perc fix for mute
Aaron Marcher info@nulltime.net
Mon, 09 Jan 2017 12:05:29 +0100
commit

3f976aabc08dd7d4762b0e04f0cbe8550f0e3ced

parent

a3cb24c438778a749767459900ad8ee6316cffdd

2 files changed, 2 insertions(+), 4 deletions(-)

jump to
M MakefileMakefile

@@ -4,7 +4,7 @@ include config.mk

all: slstatus -slstatus: config.h config.mk +slstatus: slstatus.c config.h config.mk ${CC} ${CFLAGS} -o $@ slstatus.c ${LDFLAGS} config.h:
M slstatus.cslstatus.c

@@ -658,9 +658,7 @@ }

} close(afd); - if (v == 0) { - return smprintf("mute"); - } + return smprintf("%d%%", v & 0xff); }