/[Apache-SVN]
ViewVC logotype

Revision 1878909


Jump to revision: Previous Next
Author: brane
Date: Wed Jun 17 04:49:32 2020 UTC (3 years, 10 months ago)
Changed paths: 4
Log Message:
Fix a number of thinkos in human-readable file size formatting.

* subversion/svn/filesize.c
  (format_size): Be smarter about predicting floating-point rounding to
   decide whether to show decimal places or not.
  (get_base2_unit_file_size): Fix human-readable size order calculation.
  (get_base10_unit_file_size): Likewise.

* build.conf (filesize-test): New test suite.
  (private-includes): Add subversion/svn/filesize.c for filesize-test.
* subversion/tests/client/filesize-test.c: New.

Found by: Tobias Bading <tbading{_AT_}web.de>
Patch by: me


Changed paths

Path Details
Directorysubversion/trunk/build.conf modified , text changed
Directorysubversion/trunk/subversion/svn/filesize.c modified , text changed
Directorysubversion/trunk/subversion/tests/client/ added
Directorysubversion/trunk/subversion/tests/client/filesize-test.c added

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26