summaryrefslogtreecommitdiffstats
path: root/src/hardware_battery.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/hardware_battery.h')
-rw-r--r--src/hardware_battery.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/hardware_battery.h b/src/hardware_battery.h
index 8f9a268..36bf68c 100644
--- a/src/hardware_battery.h
+++ b/src/hardware_battery.h
@@ -162,7 +162,7 @@ private:
* second) the currently reported charging/discharging rate.
* \li a value >= 0
*/
- int present_rate;
+ double present_rate;
//! Expected minutes unitl fully discharged/charged
/*!
* This int tells the current estimate until the battery is fully
@@ -262,8 +262,8 @@ public:
int getState() const;
//! estimates the remaining minutes until fully charged/discharged
int getRemainingMinutes() const;
- //! current charging/discharging rate
- int getPresentRate() const;
+ //! current charging/discharging rate
+ double getPresentRate() const;
//! maximum capacity of this battery by design
int getDesignCapacity() const;
//! current charging state as enum BAT_CHARG_STATE