[dev] [ubase/sbase] use libutils human.c in df.c, fix bug in humansize()

From: <a.regenfuss_AT_gmx.de>
Date: Tue, 31 May 2016 14:49:13 +0200

Hey suckless folks,

while reading the code for df.c, I realised it uses a specialised function
to print human-readable output, print_human(). It mostly replicates the code
of libutils human.c, not yet present in ubase.
Here is a patch that replaces print_human() with calls to humansize().

Also, why does postfixes[0] in humansize() result 'B' but that is never used?

Greetings, pranomostro

Received on Tue May 31 2016 - 14:49:13 CEST

This archive was generated by hypermail 2.3.0 : Tue May 31 2016 - 15:00:12 CEST