Re: gkrellm eth0 chart

Geoff Kuenning <[email protected]>
Newsgroups gmane.comp.gnome.apps.gkrellm
Message-ID <[email protected]>
It would be a kludge, but how about this, conditionalized somehow on
the NIC type:

    if ticks % HZ == 0
        get sample from driver
        if sample == 0
            sample = lastsample
        lastsample = sample
        sample /= 2
        plot sample

or you could use a simple finite impulse response (moving average)
digital filter, which wouldn't even have to be conditionalized, at the
price of "fuzzing out" very brief spikes:

    if ticks % HZ == 0
        get sample from driver
        plot (sample + lastsample) / 2
        lastsample = sample

A much fancier approach would be to add a general digital filtering
capability to gkrellm.  I think that would be very cool (I kind of
miss the simple infinite impulse response (exponential-decay) filter
in xload) but obviously it's a much bigger effort, and it's not
entirely clear how to make it user-friendly.
-- 
    Geoff Kuenning   [email protected]   http://www.cs.hmc.edu/~geoff/

The most exciting phrase to hear in science, the one that heralds new
discoveries, is not "Eureka!" (I found it!) but "That's funny ..."
                -- Isaac Asimov

_______________________________________________
Gkrellm mailing list
[email protected]
http://ninja.linux-phreak.biz/mailman/listinfo/gkrellm
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.