aboutsummaryrefslogtreecommitdiff
path: root/libLumina/LuminaOS-DragonFly.cpp
diff options
context:
space:
mode:
authorMichael Neumann <mneumann@ntecs.de>2015-09-06 16:10:34 +0200
committerMichael Neumann <mneumann@ntecs.de>2015-09-06 16:10:34 +0200
commit3e80f7852dd3d910fa8bf05505807d9412bacd29 (patch)
treea761336f2cbdc67ee627ad57d6a358d0a549de40 /libLumina/LuminaOS-DragonFly.cpp
parentUse sysctl(3) to retrieve most info instead of executing sysctl(8) (diff)
downloadlumina-3e80f7852dd3d910fa8bf05505807d9412bacd29.tar.gz
lumina-3e80f7852dd3d910fa8bf05505807d9412bacd29.tar.bz2
lumina-3e80f7852dd3d910fa8bf05505807d9412bacd29.zip
Battery charging state is 0 not 2.
Diffstat (limited to 'libLumina/LuminaOS-DragonFly.cpp')
-rw-r--r--libLumina/LuminaOS-DragonFly.cpp2
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
bgstack15