Skip to content
This repository has been archived by the owner on Jan 5, 2018. It is now read-only.

Commit

Permalink
forgot else
Browse files Browse the repository at this point in the history
  • Loading branch information
Unia committed Mar 11, 2013
1 parent 91030a5 commit c60db8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dwmst.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c60db8f

Please sign in to comment.