mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-27 18:06:02 +00:00
fixed more NaN checks
This commit is contained in:
+2
-2
@@ -201,8 +201,8 @@ pfUI:RegisterModule("panel", "vanilla:tbc", function()
|
||||
_, _, lag = GetNetStats()
|
||||
|
||||
if C.panel.fpscolors == "1" then
|
||||
_, _, _, fpshex = GetColorGradient(fps/60)
|
||||
_, _, _, laghex = GetColorGradient(60/lag)
|
||||
_, _, _, fpshex = GetColorGradient(fps > 0 and fps/60 or 0)
|
||||
_, _, _, laghex = GetColorGradient(lag > 0 and 60/lag or 0)
|
||||
fps = fpshex .. fps .. "|r"
|
||||
lag = laghex .. lag .. "|r"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user