Skip to content

Instantly share code, notes, and snippets.

@tekkub
Created August 27, 2008 18:24
Show Gist options
  • Select an option

  • Save tekkub/7553 to your computer and use it in GitHub Desktop.

Select an option

Save tekkub/7553 to your computer and use it in GitHub Desktop.
SecondsToTimeAbbrev = function(time)
if time <= 0 then return ""
elseif time < 3600 then
local m, s = floor(time / 60), mod(time, 60)
return (m == 0 and format("%d", s)) or format("%d:%02d", m, s)
else
local hr, m = floor(time / 3600), floor(mod(time, 3600) / 60)
return format("%d:%02d", hr, m)
end
end
8/27 12:06:30.687 Global variable SecondsToTimeAbbrev tainted by bufftime - Interface\AddOns\bufftime\bufftime.lua:5
8/27 12:06:30.687 Execution tainted by bufftime while reading SecondsToTimeAbbrev - Interface\FrameXML\BuffFrame.lua:352 BuffFrame_UpdateDuration()
8/27 12:06:30.687 Interface\FrameXML\BuffFrame.lua:196
8/27 12:06:30.687 An action was blocked in combat because of taint from bufftime - BuffButton3:SetID()
8/27 12:06:30.687 Interface\FrameXML\BuffFrame.lua:86 AuraButton_Update()
8/27 12:06:30.687 Interface\FrameXML\BuffFrame.lua:42 BuffFrame_Update()
8/27 12:06:30.687 Interface\FrameXML\BuffFrame.lua:33 BuffFrame_OnEvent()
8/27 12:06:30.687 BuffFrame:OnEvent()
8/27 12:06:30.687 An action was blocked in combat because of taint from bufftime - BuffButton3:Show()
8/27 12:06:30.687 Interface\FrameXML\BuffFrame.lua:89 AuraButton_Update()
8/27 12:06:30.687 Interface\FrameXML\BuffFrame.lua:42 BuffFrame_Update()
8/27 12:06:30.687 Interface\FrameXML\BuffFrame.lua:33 BuffFrame_OnEvent()
8/27 12:06:30.687 BuffFrame:OnEvent()
8/27 12:06:30.687 An action was blocked in combat because of taint from bufftime - BuffButton3:SetAttribute()
8/27 12:06:30.687 Interface\FrameXML\BuffFrame.lua:95 AuraButton_Update()
8/27 12:06:30.687 Interface\FrameXML\BuffFrame.lua:42 BuffFrame_Update()
8/27 12:06:30.687 Interface\FrameXML\BuffFrame.lua:33 BuffFrame_OnEvent()
8/27 12:06:30.687 BuffFrame:OnEvent()
8/27 12:06:30.687 An action was blocked in combat because of taint from bufftime - BuffButton3:SetAttribute()
8/27 12:06:30.687 Interface\FrameXML\BuffFrame.lua:96 AuraButton_Update()
8/27 12:06:30.687 Interface\FrameXML\BuffFrame.lua:42 BuffFrame_Update()
8/27 12:06:30.687 Interface\FrameXML\BuffFrame.lua:33 BuffFrame_OnEvent()
8/27 12:06:30.687 BuffFrame:OnEvent()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment