Skip to content

Commit 990db94

Browse files
committed
Fix average ms showing the wrong numbers when viewing a Last x seconds history range
1 parent 0f04acf commit 990db94

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

AddonProfiler.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -964,6 +964,7 @@ function NAP:GetElelementDataForAddon(addonName, info, bucketsWithinHistory, ove
964964
local lastTickTime = 0;
965965
local peakTime = 0;
966966
local totalMs = 0;
967+
data.numberOfTicks = 0;
967968
for bucket, startingTickIndex in pairs(bucketsWithinHistory) do
968969
data.numberOfTicks = data.numberOfTicks + ((bucket.curTickIndex - startingTickIndex) + 1);
969970
if bucket.tickMap[startingTickIndex] < firstTickTime then

0 commit comments

Comments
 (0)