merge-requests/30/head
Bob Mottram 2021-10-19 19:12:48 +01:00
parent 842ee7ec04
commit f721189769
1 changed files with 3 additions and 3 deletions

View File

@ -21,11 +21,11 @@ def fitnessPerformance(startTime, fitnessState: {},
fitnessState['performance'][fitnessId] = {}
if watchPoint not in fitnessState['performance'][fitnessId]:
fitnessState['performance'][fitnessId][watchPoint] = {
"total": 0,
"ctr": 0
"total": float(0),
"ctr": int(0)
}
timeDiff = time.time() - startTime
timeDiff = float(time.time() - startTime)
fitnessState['performance'][fitnessId][watchPoint]['total'] += timeDiff
fitnessState['performance'][fitnessId][watchPoint]['ctr'] += 1