]> git.sur5r.net Git - i3/i3status/commitdiff
small style fix in src/print_battery_info.c (move comment)
authorMichael Stapelberg <michael@stapelberg.de>
Wed, 11 Jul 2012 17:11:29 +0000 (19:11 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Wed, 11 Jul 2012 17:11:29 +0000 (19:11 +0200)
src/print_battery_info.c

index d3a931c67a9f93b939573f54ff2343d548f8fc6b..3c33d3e55e92034eb9124cd6f13848aed9633294 100644 (file)
@@ -101,7 +101,8 @@ void print_battery_info(yajl_gen json_gen, char *buffer, int number, const char
                 }
         }
 
-        if (present_rate == -1) /* on some systems POWER_SUPPLY_POWER_NOW does not exist, so we have to calculate it */
+        /* on some systems POWER_SUPPLY_POWER_NOW does not exist, so we have to calculate it */
+        if (present_rate == -1)
                 present_rate = ((float)voltage / 1000.0) * ((float)current / 1000.0);
 
         if ((full_design == -1) || (remaining == -1)) {