summaryrefslogtreecommitdiff
path: root/libbb/human_readable.c
AgeCommit message (Collapse)Author
2008-08-28df: add support for more options, add some coreutils 6.10 compat.Denis Vlasenko
by Bernhard Reutner-Fischer function old new delta df_main 664 795 +131 packed_usage 24812 24862 +50 make_human_readable_str 213 262 +49 static.ignored_mounts - 8 +8 static.unit_chars - 7 +7 static.zero_and_units 6 - -6 ------------------------------------------------------------------------------ (add/remove: 2/1 grow/shrink: 3/0 up/down: 245/-6) Total: 239 bytes
2008-06-27*: introduce and use FAST_FUNC: regparm on i386, otherwise no-onDenis Vlasenko
text data bss dec hex filename 808035 611 6868 815514 c719a busybox_old 804472 611 6868 811951 c63af busybox_unstripped
2007-08-12trylink: produce even more info about final link stageDenis Vlasenko
trylink: explain how to modify link and drastically decrease amount of padding (unfortunately, needs hand editing ATM). *: add ALIGN1 / ALIGN2 to global strings and arrays of bytes and shorts size saving: 0.5k
2007-07-21style fix (stray space before ';')Denis Vlasenko
2007-05-31delete tons of extra #includesDenis Vlasenko
2007-03-24random style fixes (extra spaces deleted)Denis Vlasenko
2006-10-27reshuffle libbb.h contents so that order of decls makes senseDenis Vlasenko
Found bad typo in largefile support :)
2006-07-02Standardize on the vi editing directives being on the first line."Robert P. J. Day"
2006-03-29- Rich Felker writes: fix invalid printf format stringsBernhard Reutner-Fischer
http://busybox.net/lists/busybox/2006-March/019568.html text data bss dec hex filename 900619 10316 1038724 1949659 1dbfdb busybox.oorig 900603 10316 1038724 1949643 1dbfcb busybox
2004-03-15Remove trailing whitespace. Update copyright to include 2004.Eric Andersen
2003-08-22"staywithu" writes:Eric Andersen
In BusyBox v1.00-pre2, commands like ls, df with -h option report a wrong file size for files larger than 4GBtye!! For example, when I execute 'ls -l', it reports -rw-r--r-- 1 root root 5368709120 Aug 17 2003 large_stream.tp when I execute 'ls -lh', I expect that -rw-r--r-- 1 root root 5.0G Aug 17 2003 large_stream.tp but it reports -rw-r--r-- 1 root root 1.0G Aug 17 2003 large_stream.tp I fixed this bug that... Line 31 in libbb/human_readable.c and line 275 include/libbb.h const char *make_human_readable_str(unsigned long size => const char *make_human_readable_str(unsigned long long size It's OK!
2001-06-30Generalize comment -- no longer ls specificEric Andersen
2001-06-30All-integer version (but it does use an unsigned long long) which fixesManuel Novoa III
the problems of the previous version (used floating point, overflowed, didn't round properly). The comments at the top of the file are worth reading; especially note 2 concerning "ls -sh".
2001-06-13I reworked make_human_readable_str so it now has a sane interface,Eric Andersen
and then fixed up df, du, and ls to use the new interface. I also fixed up some formatting issues in ls while I was in there. -Erik
2001-04-03Place a temporary bandaid on the ls/du/df human-readable issue. This method isEric Andersen
not going to scale up as well as I would like, and Matt Kraai and I have discussed a better long term solution. But for now this will at least make all the human-readable apps give correct answers. Please test the human readable/non-human readable options on your systems!!! -Erik
2001-03-28Patch bass ackwards behavior of hr flag.Matt Kraai
2001-03-28Rewrite to fix bug #1140 and make it slightly smaller.Matt Kraai
2001-03-16Convert utility.c into libbb.a. It is now a whole pile of .cEric Andersen
files. Clean up the resulting damage and fix up the makefile. -Erik