Date: Fri, 8 Mar 2002 01:55:05 -0800 (PST) From: Hendrik Scholz <hendrik@scholz.net> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/35667: net/pppload patch so it doesn't show wrong values Message-ID: <200203080955.g289t5F10100@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 35667 >Category: ports >Synopsis: net/pppload patch so it doesn't show wrong values >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Mar 08 02:00:02 PST 2002 >Closed-Date: >Last-Modified: >Originator: Hendrik Scholz >Release: 5.0-current x86 >Organization: NetUSE AG >Environment: FreeBSD deimos.raisdorf.net 5.0-CURRENT FreeBSD 5.0-CURRENT #5: Tue Feb 19 12:17:09 EST 2002 hscholz@deimos.raisdorf.net:/usr/src/sys/i386/compile/DEIMOS5 i386 >Description: pppload is a qt program that shows the traffic on ppp lines. When started uninitialized values (in the PPPStat struct) are used to calculate the traffic during the last period of time. >How-To-Repeat: Start pppload (while online or offline). It will show wrong values and sometimes even paints wrong charts due to these problems. >Fix: --- PPPStats.C.orig Fri Mar 8 16:52:57 2002 +++ PPPStats.C Fri Mar 8 16:52:37 2002 @@ -68,6 +68,8 @@ sprintf (ifreq.ifr_name, "%s%d",(const char*)options->device(),options->link()); PPPStat = & PPPInfo->stats; + PPPStat->p.ppp_ibytes = 0; + PPPStat->p.ppp_obytes = 0; memset (LastPPPStat, 0, sizeof (LastPPPStat)); get_command(ifreq.ifr_name); @@ -88,7 +90,7 @@ } } PPPStat->p.ppp_ibytes = 0; - PPPStat->p.ppp_obytes = 0; + PPPStat->p.ppp_obytes = 0; } else if ( !_isUp ) { _isUp = true; killTimer( _retryId ); >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200203080955.g289t5F10100>