Date: Wed, 16 Apr 1997 02:34:50 +1000 From: Bruce Evans <bde@zeta.org.au> To: bag@sinbin.demos.su, mishania@demos.su Cc: hackers@freebsd.org Subject: Re: mbuf clusters problem in 2.2.1R Message-ID: <199704151634.CAA04356@godzilla.zeta.org.au>
next in thread | raw e-mail | index | archive | help
>> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199704151634.CAA04356>