Skip to content

Commit

Permalink
Update power
Browse files Browse the repository at this point in the history
  • Loading branch information
tuxudo committed Mar 1, 2023
1 parent 895f2dc commit 4967285
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/power
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,13 @@ def get_battery_stats():
for item in batteryxml:
if item == 'DesignCapacity':
batteryinfo['DesignCapacity'] = batteryxml[item]
elif item == 'MaxCapacity' and (cpu_arch == 'i386' or cpu_arch == 'x86_64'):
elif item == 'MaxCapacity' and ('x86_64' in cpu_arch or 'i386' in cpu_arch):
batteryinfo['MaxCapacity'] = batteryxml[item]
elif item == 'AppleRawMaxCapacity' and (cpu_arch == 'arm' or cpu_arch == 'arm64'):
elif item == 'AppleRawMaxCapacity' and ('arm' in cpu_arch or 'arm64' in cpu_arch):
batteryinfo['MaxCapacity'] = batteryxml[item]
elif item == 'CurrentCapacity' and (cpu_arch == 'i386' or cpu_arch == 'x86_64'):
batteryinfo['CurrentCapacity'] = batteryxml[item]
elif item == 'AppleRawCurrentCapacity' and (cpu_arch == 'arm' or cpu_arch == 'arm64'):
elif item == 'AppleRawCurrentCapacity' and ('arm' in cpu_arch or 'arm64' in cpu_arch):
batteryinfo['CurrentCapacity'] = batteryxml[item]
elif item == 'Temperature':
batteryinfo['Temperature'] = batteryxml[item]
Expand Down

0 comments on commit 4967285

Please sign in to comment.