From a55c9664b6500a9c3d8c6d18ec3f67b4d09ee8c0 Mon Sep 17 00:00:00 2001 From: Drevarr Date: Tue, 10 Dec 2024 12:50:18 -0500 Subject: [PATCH] Correct DPSStas calculation --- output_functions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/output_functions.py b/output_functions.py index 4cd36a0..ba4a033 100644 --- a/output_functions.py +++ b/output_functions.py @@ -2313,10 +2313,10 @@ def build_dps_stats_tids(DPSStats: dict, tid_date_time: str, tid_list: list) -> player = DPSStats[player_prof]["name"] profession = DPSStats[player_prof]["profession"] fightTime = DPSStats[player_prof]['duration'] - DPS = ''+f"{round(DPSStats[player_prof]['damageTotal'] / fightTime):,.0f}" + DPS = ''+f"{round(DPSStats[player_prof]['damageTotal'] / i):,.0f}" row = f"|{player} | {{{{{profession}}}}} | {fightTime} | {DPS} |" for i in range(1, 11): - row += ' '+f"{round(DPSStats[player_prof][exp_dps_stat][i] / fightTime):,.0f}|" + row += ' '+f"{round(DPSStats[player_prof][exp_dps_stat][i] / i):,.0f}|" rows.append(row)