Permalink
Browse files

fixed a type error

  • Loading branch information...
teleshoes committed Feb 16, 2012
1 parent 73913c6 commit 072cea83c670578be2c051516d748471657b3662
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/battstatus.py
View
@@ -205,7 +205,7 @@ def extractCurrent(self, info, voltMv):
if unit == 'mAh' or unit == 'mA':
return val
elif unit == 'mWh' or unit == 'mW':
- return val / (voltMv * 1000.0)
+ return int(val / (voltMv * 1000.0))
else:
return None
def update(self, prefs):

0 comments on commit 072cea8

Please sign in to comment.