From owner-freebsd-hackers Tue Apr 15 09:40:49 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id JAA20063 for hackers-outgoing; Tue, 15 Apr 1997 09:40:49 -0700 (PDT) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id JAA20058 for ; Tue, 15 Apr 1997 09:40:45 -0700 (PDT) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.5/8.6.9) id CAA04356; Wed, 16 Apr 1997 02:34:50 +1000 Date: Wed, 16 Apr 1997 02:34:50 +1000 From: Bruce Evans Message-Id: <199704151634.CAA04356@godzilla.zeta.org.au> To: bag@sinbin.demos.su, mishania@demos.su Subject: Re: mbuf clusters problem in 2.2.1R Cc: hackers@freebsd.org Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >> 11062/11070 mbuf clusters in use >> 24003 Kbytes allocated to network (-74% in use) >> ^^^^^^^ ?????????????????? > >i found that negative value is a result of wrong types in netstat sources. Actually, it is caused by overflow bugs. Multiplication by 100 only works for ints <= INT_MAX / 100 and unsigned longs <= ULONG_MAX / 100. This is easily fixed using floating point (except on weird machines with DBL_MAX < INT_MAX * 100). Bruce