diff options
author | Michael Neumann <mneumann@ntecs.de> | 2015-09-06 16:10:34 +0200 |
---|---|---|
committer | Michael Neumann <mneumann@ntecs.de> | 2015-09-06 16:10:34 +0200 |
commit | 3e80f7852dd3d910fa8bf05505807d9412bacd29 (patch) | |
tree | a761336f2cbdc67ee627ad57d6a358d0a549de40 | |
parent | Use sysctl(3) to retrieve most info instead of executing sysctl(8) (diff) | |
download | lumina-3e80f7852dd3d910fa8bf05505807d9412bacd29.tar.gz lumina-3e80f7852dd3d910fa8bf05505807d9412bacd29.tar.bz2 lumina-3e80f7852dd3d910fa8bf05505807d9412bacd29.zip |
Battery charging state is 0 not 2.
-rw-r--r-- | libLumina/LuminaOS-DragonFly.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libLumina/LuminaOS-DragonFly.cpp b/libLumina/LuminaOS-DragonFly.cpp index e46f225c..e44db402 100644 --- a/libLumina/LuminaOS-DragonFly.cpp +++ b/libLumina/LuminaOS-DragonFly.cpp @@ -250,7 +250,7 @@ int LOS::batteryCharge(){ //Returns: percent charge (0-100), anything outside th //Battery Charging State bool LOS::batteryIsCharging(){ - return (get_sysctlbyname_int("hw.acpi.battery.state") == 2); + return (get_sysctlbyname_int("hw.acpi.battery.state") == 0); } //Battery Time Remaining |