conky network speed 1B in idle

Bug #493131 reported by cccccccc
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
conky (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: conky

hello,
i have latest ubuntu (9.10) & conky 1.7.2. I have noticed, that network parameters in conky:
${downspeed eth0} and ${upspeed eth0} always show both 1B and not 0B in state when I transfer nothing (in or out - checked against default Ubuntu network panel applet).
Do not know if this if bug, but it will be maybe better to have 0B. Thanks.

Related branches

Revision history for this message
Carl Davis (carl.davis) wrote :

You may want to try to:

sudo tcpdump -i eth0

at a terminal window to see if the interface is really idle. I have installed conky on 9.10 and on my interface that is truly idle (no link light) and I get 0k/s in and 0k/s out. I suspect that running tcpdump will show that there really is some traffic on your interface.

Changed in conky (Ubuntu):
status: New → Incomplete
Revision history for this message
cccccccc (cccccccc) wrote :

Carl good point... but anyway, tcp dump gave me nothing. I tried to stop network completely (networking stop) and I still have 1B of upload and download... Hmm, this is really weird. To be sure, I enclose my whole network fragment:

${font Arial:bold:size=10}${color sienna}NETWORK ${color DarkSlateGray}${hr 2}
$font${color DimGray}Down $alignr ${downspeed eth0} kb/s
Up $alignr ${upspeed eth0} kb/s

Revision history for this message
Carl Davis (carl.davis) wrote :

Thank you for the additional information. I used your network config and still cannot reproduce this bug. I wondered if you might try unplugging your network interface completely so that we know your network has no traffic and see if conky will then report zero.

Revision history for this message
cccccccc (cccccccc) wrote :

Hi, sure, I did it, but I still had 1B when I have my net cable unplugged:) This is funny.

Revision history for this message
Cesare Tirabassi (norsetto) wrote :

What is your net_avg_samples configuration variable?
Can you show us the content of the file /proc/net/dev?
Can you check if the first and ninth items of the eth0 line in this file are constant or do they regularly change when conky is showing the 1B speed?

Revision history for this message
Cesare Tirabassi (norsetto) wrote :

>What is your net_avg_samples configuration variable?

Actually, it would be way better if you can give us your whole conf file with any special command line parameters you use.

Revision history for this message
cccccccc (cccccccc) wrote :

Hi,

aaaahhh, I do not now exactly what net_avg_samples is (The number of samples to average for net data), but I changed it to "2" and now it works! Thanks a lot.

Revision history for this message
Cesare Tirabassi (norsetto) wrote :

Fix for this has been committed (fix idle rate equal to 1 instead of 0 when using net_avg_samples=1). karmic user wishing to benefit from this change can use the package from my ppa:

https://launchpad.net/~norsetto/+archive/ppa/+packages

Changed in conky (Ubuntu):
status: Incomplete → Fix Committed
Revision history for this message
Cesare Tirabassi (norsetto) wrote :

conky (1.7.2-0ubuntu6) lucid; urgency=low

  * Change arch to all for transitional package
  * Change source package format to 3.0 (quilt)
  * Reformat all patch headears iaw DEP-3
  * Move deletion of config.{guess, sub} to clean target to avoid FTBFS
    if built twice in a row
  * debian/patches/add_thread_fix_proc.patch:
    add support for $threads and fix $processes on Linux
    commit aad43bea8d3840babb502d939be324ba49c3b74e
  * debian/patches/fix_segfault_leaks_curl.patch:
    fix segfault and memleaks in curl
    commit e292dd5e280aa9c288bc6c2e1143270f5f5a08f4
  * debian/patches/add_current_user.patch (LP: #405707):
    add $user_time: if no argument is given, lists the
    login time for the tty connected to conky's standard input (if any).
    Given a console as an argument it gives the login time for that.
  * debian/patches/fix_mpd_when_stop.patch:
    fix $if_mpd_playing and $mpd_percent when you stop playing a song
    commit 827be3bde828fcf8d7be949168ac4909f6c323a2
    Thanks Sakari Matikka
  * debian/patches/fix_idle_rate_when_not_averaging.patch (LP: #493131):
    fix idle rate equal to 1 instead of 0 when using net_avg_samples=1
    commit b1cbc64f6075e0145edfb919df3e21a210f5328e
  * debian/patches/fix_manpage_width.patch:
    fix man warning: table wider than line width
    commit a14cca6592ec506b1a535be43912b4a72b40f11f
  * debian/patches/add_startup_pause_option.patch:
    add the -p/--pause command line option
    commit 584d05d2ad66edf1f53372382826a2416b50d9da
  * debian/patches/add_extended_cairo_structures.patch
    add creation functions for the cairo_font_extents_t,
    cairo_text_extents_t and cairo_matrix_t structures
    commit 8bd41caa51e080fd3ef28c7cdeee775872cdc1f4
  * debian/patches/fix_manpage_typos.patch
    fix typos in manpage
    commit c8a99a865adbd862bf74c0ca310fda796601fb5f

 -- Cesare Tirabassi <email address hidden> Sun, 27 Dec 2009 23:22:54 +0100

Changed in conky (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.