Bug 61512

Summary: ksysguard interprets Network:Interfaces:*:*:Data incorrectly on FreeBSD
Product: [Unmaintained] ksysguard Reporter: chkno <chkno>
Component: generalAssignee: KSysGuard Developers <ksysguard-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: FreeBSD   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: screenshot of looping behavior
screenshot of alternating data readings

Description chkno 2003-07-22 01:21:36 UTC
Version:           1.2.0 (using KDE 3.1.2)
Installed from:    compiled sources
Compiler:          gcc version 2.95.4 20020320 [FreeBSD]
OS:          FreeBSD (i386) release 4.8-PRERELEASE

On FreeBSD, the Network:Interfaces:*:*:Data sensors report total number of bytes transfered since boot (looping at 2^32) instead of bytes/sec.

Screenshot at http://chkno.net/ksysguard-network-interfaces-data-bug.png
Comment 1 chkno 2003-07-23 17:41:22 UTC
More strange behavior.  As if its getting two sets of readings which alternate. 
 
A screenshot is worth a thousand words: 
http://chkno.net/ksysguard-network-interfaces-data-high-low.png 
Comment 2 chkno 2003-07-23 17:43:41 UTC
Created attachment 2047 [details]
screenshot of looping behavior
Comment 3 chkno 2003-07-23 17:44:27 UTC
Created attachment 2048 [details]
screenshot of alternating data readings
Comment 4 andy 2004-01-10 22:34:42 UTC
Subject: kdebase/ksysguard/ksysguardd/FreeBSD [POSSIBLY UNSAFE]

CVS commit by fawcett: 

Patch from Markus Brueffer to fix:

bug:47710:
It wasn't the use of sysctl that causes the problems, but how the data returned was used

The wishlist part of this bug should be filed as a separate item, I will mail the submitter to do this.


bug:61512
behaviour is now correct

CCMAIL: brueffer@phoenix-systems.de
CCMAIL: 47710-done@bugs.kde.org
CCMAIL: 61512-done@bugs.kde.org


  M +39 -22    netdev.c   1.10 [POSSIBLY UNSAFE: printf]