summaryrefslogtreecommitdiffstats
path: root/usr.bin/last
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2003-12-29 08:25:32 +0000
committerbde <bde@FreeBSD.org>2003-12-29 08:25:32 +0000
commit3b08616924a192a0293d4098ce94e7ae42b98fc4 (patch)
tree20b19ac8b4d76c3235b809f747bc26bec0d1570f /usr.bin/last
parentb7c552b38a3df97d3e5bd0c5410c1dc6609a529d (diff)
downloadFreeBSD-src-3b08616924a192a0293d4098ce94e7ae42b98fc4.zip
FreeBSD-src-3b08616924a192a0293d4098ce94e7ae42b98fc4.tar.gz
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
Diffstat (limited to 'usr.bin/last')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud