GNOME Bugzilla – Bug 556858
Network and Disk statistics are misleading - tooltip is corrupting graphs
Last modified: 2010-06-21 19:51:46 UTC
Please describe the problem: When the refresh rate is less than 1 second, net and disk activity shows 0 every other line because the glib_top refresh rate is only 1 second. Also, when hovering the mouse on the applet, the getdata function is called, causing the data to be overriden with 0 (since nothing changed - it only changes every second). So when you move quickly the mouse over the network activity, the reported activity is very often overwritten with 0 (no delta). Steps to reproduce: 1. Set refresh rate to 500 ms = or = 2. Move your mouse over the net activity out and in quickly. Activity will drop Actual results: Net activity is flawed Expected results: Does this happen every time? Yes Other information:
Created attachment 120834 [details] [review] Patch to have network getdata() do a delta only if 1 second has passed
Created attachment 120835 [details] [review] Make disk getdata() do a delta only if 1 second passed. I used 1 second also for disk activity, but I don't really know the sampling rate of this component. Maybe it should be less. Anyway, the "hover-the-mouse-and-corrupt-data" bug is fixed.
I can confirm the bug with the network graph/tooltip referred to in step 2 above. However I don't experience any problems from setting the refresh rate below 1ms. (Version 2.28.0-0ubuntu2 of gnome-applets in Ubuntu 9.10/karmic)
Created attachment 161084 [details] [review] Patch to fix the bug in correct way
This has been fixed as part of the fix for bug 617992 (i.e. Max's patch).