1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-22 14:16:00 +00:00

Merge pull request #481 from ShiningRay/master

coerce lockTime to float type
This commit is contained in:
Steve Schnepp 2014-05-04 18:12:32 +02:00
commit e4ef822e5c

View file

@ -20,7 +20,7 @@ name = "locked"
def doData():
status = getServerStatus()
if status["version"] >= "2.2.0":
ratio = status["globalLock"]["lockTime"] / status["globalLock"]["totalTime"]
ratio = float(status["globalLock"]["lockTime"]) / status["globalLock"]["totalTime"]
else:
ratio = status["globalLock"]["ratio"]
print name + ".value " + str( 100 * ratio )