Private
Public Access
1
0

percentage as int

This commit is contained in:
Sander Roosendaal
2017-11-01 17:37:11 +01:00
parent 1847ab37e3
commit e1a2c509e7

View File

@@ -171,7 +171,7 @@ class SessionTaskListener(threading.Thread):
try:
data = json.loads(item['data'])
total,done,id,session_key = getvalue(data)
perc = 100.*done/total
perc = int(100.*done/total)
cache.set(id,perc,3600)
except TypeError: