Index | Thread | Search

From:
"Theo de Raadt" <deraadt@openbsd.org>
Subject:
Re: make 'df -hi' more human readable
To:
Job Snijders <job@bsd.nl>
Cc:
tech@openbsd.org
Date:
Wed, 07 Jan 2026 08:20:50 -0700

Download raw body.

Thread
Job Snijders <job@bsd.nl> wrote:

> On Wed, Jan 07, 2026 at 08:00:17AM -0700, Theo de Raadt wrote:
> > It is obviously better if it rounds DOWN, than if it rounds UP.
> >
> > If it rounds down, your eyeball measure will be short at runtime.
> > 
> > I don't think it matters at all.  If you care deeply, you would not
> > throw away the precision.  Don't use the -h option.
> 
> You are saying that it is better to display the decimal number
> 803,356,617 as 766M, rather then as 803M? and 8,630,581 as 8.2M, instead
> of 8.6M? This really surprises me.

I think the total number of people in the universe who will care about
this is 1.

More people will care that -h now influences the printing of -i,
and if someone had a script interpreting the column it has changed.

Meaning 1000 or 1024, noone will actually care.