From ae8dc71bb8096fa401f4dd3aeaf5fdfe5999b844 Mon Sep 17 00:00:00 2001 From: Meow <30401521+me0wg4ming@users.noreply.github.com> Date: Wed, 11 Mar 2026 05:18:51 +0100 Subject: [PATCH] fixed more NaN checks --- modules/panel.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/panel.lua b/modules/panel.lua index 755cd079..1d9342fc 100644 --- a/modules/panel.lua +++ b/modules/panel.lua @@ -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