df, pstat - Use HN_FRACTIONAL
commita60bc03f5b8f3c2cd0e7c10a1021f7c87bccdeb5
authorMatthew Dillon <dillon@apollo.backplane.com>
Sat, 31 Dec 2016 00:08:50 +0000 (30 16:08 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sat, 31 Dec 2016 00:08:50 +0000 (30 16:08 -0800)
tree534fdfd0da807e31fb1fe715c38626a89c754e72
parenta4b1d485a91a1ba66320d7f7614f36561107cf7d
df, pstat - Use HN_FRACTIONAL

* Use the new HN_FRACTIONAL to display fractional digits in a better
  way than HN_DECIMAL.  The general problem being solved is that in
  numerous cases HN_DECIMAL would only display two digits, which is
  not enough precision.

  For example, if you have a 32.3G volume it would previously display as
  32G, and will now display as 32.3G.  If I configured 14.6TB of swap it
  would previously display as 14T and will now display as 14.6T.
bin/df/df.c
usr.sbin/pstat/pstat.c