Bug 61512 - ksysguard interprets Network:Interfaces:*:*:Data incorrectly on FreeBSD
Summary: ksysguard interprets Network:Interfaces:*:*:Data incorrectly on FreeBSD
Alias: None
Product: ksysguard
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources FreeBSD
: NOR normal
Target Milestone: ---
Assignee: KSysGuard Developers
Depends on:
Reported: 2003-07-22 01:21 UTC by chkno
Modified: 2004-01-10 22:34 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:

screenshot of looping behavior (8.50 KB, image/png)
2003-07-23 17:43 UTC, chkno
screenshot of alternating data readings (5.15 KB, image/png)
2003-07-23 17:44 UTC, chkno

Note You need to log in before you can comment on or make changes to this bug.
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: 
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:

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.

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]