Red Hat Bugzilla – Bug 439143
dstat exits with traceback when invalid network device given
Last modified: 2008-04-16 23:47:59 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; cs-CZ; rv:188.8.131.52) Gecko/20080325 Fedora/184.108.40.206-1.fc8 Firefox/220.127.116.11
Description of problem:
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. dstat -i -I eth1 # choose a device which is not present on the machine
Traceback (most recent call last):
File "/usr/bin/dstat", line 2041, in <module>
File "/usr/bin/dstat", line 1986, in main
File "/usr/bin/dstat", line 866, in extract
self.cn2['total'] = self.cn2['total'] + long(l[int(name) + 2])
UnboundLocalError: local variable 'name' referenced before assignment
Empty lines in the output.
Created attachment 299302 [details]
fixes bad indentation which caused the traceback
(In reply to comment #1)
> Created an attachment (id=299302) 
> a patch
> fixes bad indentation which caused the traceback
This bug is now better fixed by patch for bug #439146.
dstat-0.6.7-2.fc8 has been pushed to the Fedora 8 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
su -c 'yum --enablerepo=updates-testing update dstat'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F8/FEDORA-2008-2816
dstat-0.6.7-2.fc8 has been pushed to the Fedora 8 stable repository. If problems still persist, please make note of it in this bug report.