Re: Source of Gkrellm network statistics

Bill WIlson <[email protected]>
Newsgroups gmane.comp.gnome.apps.gkrellm
Message-ID <[email protected]>
On Mon,  2 Oct 2006 15:05:09 +0000 (UTC)
Anonymous Sender <[email protected]> wrote:

> I just discovered that clicking on the Gkrellm panel for my network device
> (eth0) brings up a new window containing traffic statistics for
> the last 12 months.  I would like to know where gkrellm gets this data.
> 
> The data must be stored on disk, because the values persist across reboots.
> 
> I have tried looking in /proc, /var/log and /var/run.  I also 
> tried looking at the program source code, but still failed to
> locate the source of the statistics.

This is data gkrellm collects as it runs and saves under your ~/.gkrellm2.
For eth0 data, look at the file:

    ~/.gkrellm2/data/net/eth0

If you run an alternate config or client gkrellm, the data dirs change:

   ~/.gkrellm2/data-<configname>/net/eth0
   ~/.gkrellm2/data_S-<servername>/net/eth0

In the source, it's the gkrellm_net_save_data() function in net.c

Bill
_______________________________________________
Gkrellm mailing list
[email protected]
http://lists.jutley.org/cgi-bin/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.