Broker_SysMon

SysMon plugin for any DataBroker display.

You must login to post a comment. Don't have an account? Register to get one!

  • 3 comments
  • Avatar of profalbert profalbert Wed, 01 Jul 2009 07:51:11

    I took the liberty of uploading the code along with Optdep and .pkgmeta entries for LibCrayon-3.0.

    If you approve ag, you can maybe tag it as new release.

  • Avatar of andreasg andreasg Tue, 21 Apr 2009 00:23:09

    Hi Sefi,

    You can commit the changes yourself if you want, feel free to do so :)

  • Avatar of Sefi Sefi Tue, 27 Jan 2009 08:45:27

    Hello, thanks for this addon, it's compact, usefull, perfect :) all I need.

    Just a little request, I like coloring text for perf (1fps = red, 60fps green, etc) so I changed a function (need LibCrayon-3.0) :

    local brokers = {
    	[FPS] = function()
    		local framerate = floor(GetFramerate() + 0.5)
    		return format("|cff%s%d|r", Crayon:GetThresholdHexColor(framerate / 60), framerate)
    	end,
    	[Lag] = function()
    		local latency = select(3, GetNetStats())
    		return format("|cff%s%d|r", Crayon:GetThresholdHexColor(latency, 1000, 500, 250, 100, 0), latency)
    	end,
    	[MemUse] = function()
    		local currentMemory = collectgarbage("count")
    		return format("|cff%s%.1f|r", Crayon:GetThresholdHexColor(currentMemory, 51200, 40960, 30520, 20480, 10240), currentMemory / 1024)
    	end,
    	[IncreasingRate] = function()
    		local currentRate = 0
    		if #rate > 0 then
    			currentRate = (rate[#rate] - rate[1]) / #rate
    		end
    		return format("|cff%s%.1f|r", Crayon:GetThresholdHexColor(currentRate, 30, 10, 3, 1, 0), currentRate)
    	end,
    }
    

    and an other little change, I don't like having a tooltip OnMouseOver, if it's not need, so I display it only for MemUse :

    for k, v in pairs(brokers) do
    	if k.additionalTooltip then
    		k.OnTooltipShow = function(tt)
    			tt:AddLine(k.label)
    			tt:AddLine(format("%s %s", v(), k.suffix))
    			tt:AddLine(" ")
    			k.additionalTooltip(tt)
    		end
    	end
    end
    

    Be free to add those changes for the next release.
    Thanks

  • 3 comments

Facts

Date created
20 Aug 2008
Category
Last update
06 Jan 2010
Development stage
Release
Language
  • enUS
License
BSD License
Curse link
Broker_SysMon
Recent files
  • A: r62 for 3.3.0 on 06 Jan 2010
  • A: r61 for 3.1.0 on 01 Jul 2009
  • A: r60 for 3.1.0 on 01 Jul 2009
  • A: r59 for 3.1.0 on 01 Jul 2009
  • R: v1.1 for 3.1.0 on 15 Apr 2009

Authors

Relationships

Embedded library
Ace3
CallbackHandler-1.0
LibStub