emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: master 2b97e83cc1 2/2: Fix off-by-one file size formatting in ls-lis


From: Lars Ingebrigtsen
Subject: Re: master 2b97e83cc1 2/2: Fix off-by-one file size formatting in ls-lisp
Date: Sun, 13 Feb 2022 09:28:53 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Eli Zaretskii <eliz@gnu.org> writes:

> AFAIU, it attempts to show more significant digits when the value is
> near a round power.

Looks like it was introduced by this:

commit 04f33f1ed9cdfed6a3e44a55d333cd19d58424ca
Author:     Eli Zaretskii <eliz@gnu.org>
AuthorDate: Sat Apr 9 09:59:26 2011 +0300

    Produce more accurate results from file-size-human-readable.
    
     lisp/files.el (file-size-human-readable): Produce one digit after
     decimal, like "ls -lh" does.

But ls -lh does not use a digit after the decimal in this case.  At
least now -- perhaps it did in 2011?  On Debian/bookworm:

larsi@giant:~/src/emacs/trunk$ ls -lh /tmp/bytes
-rw-r--r-- 1 larsi larsi 1006K Feb 12 08:04 /tmp/bytes


-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



reply via email to

[Prev in Thread] Current Thread [Next in Thread]