drbot7
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
1 deletions
-
cogs/timings.py
|
@ -303,7 +303,10 @@ class Timings(commands.Cog): |
|
|
if total_ticks == normal_ticks: |
|
|
if total_ticks == normal_ticks: |
|
|
end_time = request["timingsMaster"]["data"][index]["end"] |
|
|
end_time = request["timingsMaster"]["data"][index]["end"] |
|
|
start_time = request["timingsMaster"]["data"][index]["start"] |
|
|
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: |
|
|
if tps < worst_tps: |
|
|
worst_tps = tps |
|
|
worst_tps = tps |
|
|
if worst_tps < 10: |
|
|
if worst_tps < 10: |
|
|