Re: [PATCH 1/2] df: print negative value correctly
From:
Paul Eggert
Subject:
Re: [PATCH 1/2] df: print negative value correctly
Date:
Wed, 28 Nov 2007 23:09:37 -0800
User-agent:
Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)
Li Zefan <address@hidden> writes:
> Function df_readable() won't print negative value correctly. Don't pass -n
> to human_readable(), add a prefix '-' in the char buffer is enough.
I don't see why this change is needed. Can you give an example?
For example, this code in show_dev:
used = total - available_to_root;
negate_used = (total < available_to_root);
suggests that -n should be passed.