Browse Source

fix /0 with short reports

master
drbot7 3 years ago
committed by GitHub
parent
commit
86353773b2
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      cogs/timings.py

3
cogs/timings.py

@ -303,6 +303,9 @@ class Timings(commands.Cog):
if total_ticks == normal_ticks:
end_time = request["timingsMaster"]["data"][index]["end"]
start_time = request["timingsMaster"]["data"][index]["start"]
if end_time == start_time:
tps = 20
else:
tps = total_ticks / (end_time - start_time)
if tps < worst_tps:
worst_tps = tps

Loading…
Cancel
Save