Modified:
branches/Ace2/TBC/Ace2/AceAddon-2.0/AceAddon-2.0.lua
Log:
Ace2 - fixed /ace2 info
Modified: branches/Ace2/TBC/Ace2/AceAddon-2.0/AceAddon-2.0.lua
===================================================================
--- branches/Ace2/TBC/Ace2/AceAddon-2.0/AceAddon-2.0.lua 2006-10-21 15:03:17 UTC (rev 14654)
+++ branches/Ace2/TBC/Ace2/AceAddon-2.0/AceAddon-2.0.lua 2006-10-21 15:15:53 UTC (rev 14655)
@@ -653,7 +653,9 @@
func = function()
local mem, threshold = gcinfo()
print(string.format(" - |cffffff7fMemory usage [|r%.3f MiB|cffffff7f]|r", mem / 1024))
- print(string.format(" - |cffffff7fThreshold [|r%.3f MiB|cffffff7f]|r", threshold / 1024))
+ if threshold then
+ print(string.format(" - |cffffff7fThreshold [|r%.3f MiB|cffffff7f]|r", threshold / 1024))
+ end
print(string.format(" - |cffffff7fFramerate [|r%.0f fps|cffffff7f]|r", GetFramerate()))
local bandwidthIn, bandwidthOut, latency = GetNetStats()
bandwidthIn, bandwidthOut = floor(bandwidthIn * 1024), floor(bandwidthOut * 1024)