a7e766a - Start player frame modification
[wowui.git] / OmaRF / Indicators.lua
index ebece6c..c59c975 100644 (file)
@@ -22,6 +22,8 @@ local UnitIsPlayer = UnitIsPlayer;
 local UnitIsConnected = UnitIsConnected;
 local UnitIsDeadOrGhost = UnitIsDeadOrGhost;
 local CompactRaidFrameContainer_ApplyToFrames = CompactRaidFrameContainer_ApplyToFrames;
 local UnitIsConnected = UnitIsConnected;
 local UnitIsDeadOrGhost = UnitIsDeadOrGhost;
 local CompactRaidFrameContainer_ApplyToFrames = CompactRaidFrameContainer_ApplyToFrames;
+local format = string.format;
+local unpack = unpack;
 
 -- list of important auras TODO try to use spellIDs
 local centerAuras = {
 
 -- list of important auras TODO try to use spellIDs
 local centerAuras = {
@@ -105,9 +107,9 @@ local function updateIndicators(frame)
                         local text;
                         local remaining = expires - current;
                         if remaining > 60 then
                         local text;
                         local remaining = expires - current;
                         if remaining > 60 then
-                            text = string.format("%dm", ceil(remaining/60));
+                            text = format("%dm", ceil(remaining/60));
                         else
                         else
-                            text = string.format("%d", floor(remaining+0.5));
+                            text = format("%d", floor(remaining+0.5));
                         end
                         if count > 1 and config.stack then
                             if text then
                         end
                         if count > 1 and config.stack then
                             if text then