git: df, pstat - Use HN_FRACTIONAL

Matthew Dillon dillon at crater.dragonflybsd.org
Fri Dec 30 16:16:29 PST 2016


commit a60bc03f5b8f3c2cd0e7c10a1021f7c87bccdeb5
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Fri Dec 30 16:08:50 2016 -0800

    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.

Summary of changes:
 bin/df/df.c            | 10 +++++++---
 usr.sbin/pstat/pstat.c | 19 ++++++++++++++-----
 2 files changed, 21 insertions(+), 8 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/a60bc03f5b8f3c2cd0e7c10a1021f7c87bccdeb5


-- 
DragonFly BSD source repository



More information about the Commits mailing list