Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed a unit error

  • Loading branch information...
commit 797501215c61e6dff3c9553f60edf4701cc89e66 1 parent 072cea8
@teleshoes authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/battstatus.py
View
2  src/battstatus.py
@@ -205,7 +205,7 @@ def extractCurrent(self, info, voltMv):
if unit == 'mAh' or unit == 'mA':
return val
elif unit == 'mWh' or unit == 'mW':
- return int(val / (voltMv * 1000.0))
+ return val / (voltMv / 1000.0)
else:
return None
def update(self, prefs):
Please sign in to comment.
Something went wrong with that request. Please try again.