From c60db8fae3c23998c2ee90785b4c487052f5eb6d Mon Sep 17 00:00:00 2001 From: Unia Date: Mon, 11 Mar 2013 18:40:06 +0100 Subject: [PATCH] forgot else --- dwmst.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dwmst.c b/dwmst.c index b9fd5e0..9c60029 100644 --- a/dwmst.c +++ b/dwmst.c @@ -151,7 +151,7 @@ int main() { perc = (now * 100) / full; if (strncmp(state, "Full", 8) == 0) sprintf(statnext, BAT_FULL_STR, perc); - if(strncmp(state, "Unknown", 8) == 0) + else if(strncmp(state, "Unknown", 8) == 0) sprintf(statnext, BAT_UNK_STR); else if (strncmp(state, "Charging", 8) == 0) { seconds = 3600 * (((float)full - (float)now) / (float)rate);