summaryrefslogtreecommitdiff
path: root/libbb/human_readable.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Remove trailing whitespace. Update copyright to include 2004.Eric Andersen2004-03-151-4/+4
|
* "staywithu" writes:Eric Andersen2003-08-221-4/+3
| | | | | | | | | | | | | | | | | | | | | | | 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!
* Generalize comment -- no longer ls specificEric Andersen2001-06-301-4/+3
|
* All-integer version (but it does use an unsigned long long) which fixesManuel Novoa III2001-06-301-47/+70
| | | | | | 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".
* I reworked make_human_readable_str so it now has a sane interface,Eric Andersen2001-06-131-22/+26
| | | | | | 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
* Place a temporary bandaid on the ls/du/df human-readable issue. This method isEric Andersen2001-04-031-19/+28
| | | | | | | | | 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
* Patch bass ackwards behavior of hr flag.Matt Kraai2001-03-281-10/+13
|
* Rewrite to fix bug #1140 and make it slightly smaller.Matt Kraai2001-03-281-26/+14
|
* Convert utility.c into libbb.a. It is now a whole pile of .cEric Andersen2001-03-161-0/+62
files. Clean up the resulting damage and fix up the makefile. -Erik