Browse Source

fix /0 with short reports

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

5
cogs/timings.py

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

Loading…
Cancel
Save