GNU bug report logs - #8320
df -BT: rounding error?

Previous Next

Package: coreutils;

Reported by: "Voelker, Bernhard" <bernhard.voelker <at> siemens-enterprise.com>

Date: Tue, 22 Mar 2011 16:07:02 UTC

Severity: normal

Tags: notabug

Done: Jim Meyering <jim <at> meyering.net>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 8320 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: "Voelker, Bernhard" <bernhard.voelker <at> siemens-enterprise.com>
Cc: 8320 <at> debbugs.gnu.org
Subject: Re: bug#8320: df -BT: rounding error?
Date: Tue, 22 Mar 2011 09:47:42 -0700
On 03/22/2011 08:47 AM, Voelker, Bernhard wrote:
> shouldn't it return
> 0[TPE] for the "Used" column, as rounding a value of 17% should lead to
> zero (mathematically)?

df always rounds up, rather than to nearest.
I vaguely recall that POSIX specifies that, for -k.

> BTW: why are `Z' and `Y' "too large"?

They don't fit in 64 bits.




This bug report was last modified 13 years and 341 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.