freebsd-skq/usr.bin/netstat
Bruce Evans 9e53fb7dc8 Use floating point instead of unsigned long longs in percentage
calculations.  Long longs should never be used, since they break compiling
with C90 compilers and don't necessarily work any better than longs for
avoiding overflow.

Print percentages with another digit of precision since they can be small
and this is easy to do now that the format is floating point.

Restored some more of the old -m output:
Print the percentage of allocated memory that is in use.  This is the
amount of memory in active mbufs and mbuf clusters relative to the
total amount of memory soft-allocated for mbufs and mbuf clusters.

Print the percentage of allocated memory that is wired (cached).  The
old mbuf allocator never freed memory so printing this value wasn't
useful.  A previous version of netstat for the new allocator printed
the in-use amount as a percentage of the wired amount.

Fixed some nearby style bugs (excessive parenthesization and a redundant
return).

Reviewed by:	alfred
2003-12-29 08:25:32 +00:00
..
atalk.c Warns cleanups for netstat: 2002-09-05 17:06:51 +00:00
if.c Fix some minor nits in netstat whereby large interface names would be 2003-11-28 17:34:23 +00:00
inet6.c o Typo/Grammar fixes 2003-01-14 16:02:56 +00:00
inet.c Print the correct ICMP statistics for "no return routes". 2003-10-23 13:53:19 +00:00
ipsec.c Warns cleanups for netstat: 2002-09-05 17:06:51 +00:00
ipx.c Warns cleanups for netstat: 2002-09-05 17:06:51 +00:00
main.c Restore old netstat -m output. 2003-12-23 13:24:03 +00:00
Makefile Fixed missing declaration of pluralies(). This showed up as strange 2003-12-29 04:41:38 +00:00
mbuf.c Use floating point instead of unsigned long longs in percentage 2003-12-29 08:25:32 +00:00
mroute6.c Warns cleanups for netstat: 2002-09-05 17:06:51 +00:00
mroute.c 1. Add support for printing PIM-related statistics with 2003-08-07 18:21:21 +00:00
netgraph.c Warns cleanups for netstat: 2002-09-05 17:06:51 +00:00
netstat.1 Restore old netstat -m output. 2003-12-23 13:24:03 +00:00
netstat.h Fixed missing declaration of pluralies(). This showed up as strange 2003-12-29 04:41:38 +00:00
route.c Fix some minor nits in netstat whereby large interface names would be 2003-11-28 17:34:23 +00:00
unix.c Widen struct sockbuf's sb_timeo member to int from short. With 2002-07-24 03:02:43 +00:00