From 3d9547c34009394dd4abb4c6d362130b5af700fa Mon Sep 17 00:00:00 2001 From: shagu Date: Sat, 2 Jul 2022 14:29:14 +0200 Subject: [PATCH] api: update time string comments --- api/api.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/api.lua b/api/api.lua index 61603b2d..36570e06 100644 --- a/api/api.lua +++ b/api/api.lua @@ -1197,13 +1197,13 @@ end -- return a colored string including a time unit (m/h/d) function pfUI.api.GetColoredTimeString(remaining) if not remaining then return "" end - if remaining > 356400 then -- 99 * 3600 + if remaining > 356400 then -- Show days if remaining is > 99 Hours (99 * 60 * 60) local r,g,b,a = pfUI.api.GetStringColor(C.appearance.cd.daycolor) return pfUI.api.rgbhex(r,g,b) .. round(remaining / 86400) .. "|rd" - elseif remaining > 5940 then -- 99 * 60 + elseif remaining > 5940 then -- Show hours if remaining is > 99 Minutes (99 * 60) local r,g,b,a = pfUI.api.GetStringColor(C.appearance.cd.hourcolor) return pfUI.api.rgbhex(r,g,b) .. round(remaining / 3600) .. "|rh" - elseif remaining > 99 then + elseif remaining > 99 then -- Show minutes if remaining is > 99 Seconds (99) local r,g,b,a = pfUI.api.GetStringColor(C.appearance.cd.minutecolor) return pfUI.api.rgbhex(r,g,b) .. round(remaining / 60) .. "|rm" elseif remaining <= 5 and pfUI_config.appearance.cd.milliseconds == "1" then