We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 308d46c commit 24d6dcdCopy full SHA for 24d6dcd
plugins/serverstats/lua/callbacks.lua
@@ -10,8 +10,9 @@ function createSimulateFrame()
10
if counter == 3600 then
11
local currentTime = os.clock()
12
local elapsedTime = currentTime - startTime
13
- local fps = counter / elapsedTime
14
- utils.sendBotTable({command = 'perfmon', fps = fps})
+ if elapsedTime > 0 then
+ utils.sendBotTable({command = 'perfmon', fps = counter / elapsedTime})
15
+ end
16
startTime = currentTime
17
counter = 0
18
else
0 commit comments