diff options
author | Fritz Elfert <felfert@to.com> | 2002-03-18 08:08:04 +0000 |
---|---|---|
committer | Fritz Elfert <felfert@to.com> | 2002-03-18 08:08:04 +0000 |
commit | 1804e594abb7a795ea2cb223780d36e8e5dcd291 (patch) | |
tree | 80aa5e54fd276b26a93619af52a9a049b1a61d05 /lib | |
parent | d5e2ee3065c6be51230668ff44eb85d58ca0ad58 (diff) | |
download | plptools-1804e594abb7a795ea2cb223780d36e8e5dcd291.tar.gz plptools-1804e594abb7a795ea2cb223780d36e8e5dcd291.tar.bz2 plptools-1804e594abb7a795ea2cb223780d36e8e5dcd291.zip |
- Corrected entries in machineinfo
- Adapted plpftp and plpprops to new machineinfo
- Translations.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rpcs.h | 2 | ||||
-rw-r--r-- | lib/rpcs32.cc | 5 |
2 files changed, 3 insertions, 4 deletions
@@ -155,8 +155,8 @@ public: Enum<batterystates> backupBatteryStatus; unsigned long backupBatteryVoltage; unsigned long backupBatteryMaxVoltage; - psi_timeval backupBatteryUsedTime; + psi_timeval externalPowerUsedTime; bool externalPower; } machineInfo; diff --git a/lib/rpcs32.cc b/lib/rpcs32.cc index 92132af..64ac5b4 100644 --- a/lib/rpcs32.cc +++ b/lib/rpcs32.cc @@ -117,9 +117,8 @@ getMachineInfo(machineInfo &mi) mi.backupBatteryStatus = (enum rpcs::batterystates)a.getDWord(108); mi.backupBatteryVoltage = a.getDWord(112); mi.backupBatteryMaxVoltage = a.getDWord(116); - mi.backupBatteryUsedTime.tv_low = a.getDWord(124); - mi.backupBatteryUsedTime.tv_high = a.getDWord(128); - + mi.externalPowerUsedTime.tv_low = a.getDWord(124); + mi.externalPowerUsedTime.tv_high = a.getDWord(128); mi.externalPower = (a.getDWord(120) != 0); mtCacheS5mx |= 8; |