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

Commit

Permalink
removed some whitespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Unia committed Mar 11, 2013
1 parent 08e934d commit e3cea8c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pkgname=dwm-status
pkgver=20130310
pkgver=20130311
pkgrel=1
pkgdesc='A hardcoded statusbar for DWM'
arch=(any)
Expand Down
6 changes: 2 additions & 4 deletions dwmst.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ int main() {
snd_mixer_selem_id_set_name(mute_info, VOL_CH);
mas_mixer = snd_mixer_find_selem(handle, mute_info);
snd_mixer_selem_get_playback_switch(mas_mixer, SND_MIXER_SCHN_MONO, &mute); /* get mute state */

if(mute == 0) {
sprintf(statnext, VOL_MUTE_STR);
} else {
Expand Down Expand Up @@ -162,7 +161,6 @@ int main() {
full = ((float)voltage / 1000) * ((float)full / 1000);
rate = ((float)voltage / 1000) * ((float)rate / 1000);
perc = (now * 100) / full;

if (strncmp(statnext, "Full", 8) == 0) {
sprintf(statnext, BAT_FULL_STR, perc);
} else if (strncmp(statnext, "Charging", 8) == 0) {
Expand All @@ -171,14 +169,14 @@ int main() {
seconds -= 3600 * hours;
minutes = seconds / 60;
seconds -= 60 * minutes;
sprintf(statnext, BAT_CHRG_STR, perc, hours, minutes);
sprintf(statnext, BAT_CHRG_STR, perc, hours, minutes);
} else {
seconds = 3600 * ((float)now / (float)rate);
hours = seconds / 3600;
seconds -= 3600 * hours;
minutes = seconds / 60;
seconds -= 60 * minutes;
if (perc < BATT_LOW_P || minutes < BATT_LOW_T) {
if (perc < BATT_LOW_P || minutes < BATT_LOW_T) {
sprintf(statnext, BAT_LOW_STR, perc, hours, minutes);
} else {
sprintf(statnext, BAT_STR, perc, hours, minutes);
Expand Down

0 comments on commit e3cea8c

Please sign in to comment.