X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fbattery.c;h=8a96e8990f672e6ba98fed8d7d067dc905254f59;hb=ce111def8523929a7a833a022ef2db3b9eb2b345;hp=0350a9eb1dae3b84bffdf84b6ebf2b33a27e48ed;hpb=09c12e0e1e0ef340a7074146684650ed54cba64d;p=collectd.git diff --git a/src/battery.c b/src/battery.c index 0350a9eb..8a96e899 100644 --- a/src/battery.c +++ b/src/battery.c @@ -358,7 +358,7 @@ static int battery_read (void) /* {{{ */ * IOPowerSources. IOKit, on the other hand, only reports the full * capacity. We use the two to calculate the current charged capacity. */ gauge_t charge_rel = NAN; /* Current charge in percent */ - gauge_t capacity_charged = NAN; /* Charged capacity */ + gauge_t capacity_charged; /* Charged capacity */ gauge_t capacity_full = NAN; /* Total capacity */ gauge_t capacity_design = NAN; /* Full design capacity */