aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ls-lisp.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/ls-lisp.el b/lisp/ls-lisp.el
index 5a3c1b52ff7..7d35b1e8dc3 100644
--- a/lisp/ls-lisp.el
+++ b/lisp/ls-lisp.el
@@ -177,7 +177,7 @@ are: A a c i r S s t u"
177 (search-backward "total \007") 177 (search-backward "total \007")
178 (goto-char (match-end 0)) 178 (goto-char (match-end 0))
179 (delete-char -1) 179 (delete-char -1)
180 (insert (format "%d" (if (zerop sum) 0 (1+ (/ sum 1024))))))) 180 (insert (format "%.0f" (fceiling (/ sum 1024.0))))))
181 ;; if not full-directory-p, FILE *must not* end in /, as 181 ;; if not full-directory-p, FILE *must not* end in /, as
182 ;; file-attributes will not recognize a symlink to a directory 182 ;; file-attributes will not recognize a symlink to a directory
183 ;; must make it a relative filename as ls does: 183 ;; must make it a relative filename as ls does:
@@ -246,7 +246,7 @@ are: A a c i r S s t u"
246 (format "%6d " (nth 10 file-attr))) 246 (format "%6d " (nth 10 file-attr)))
247 ;; nil is treated like "" in concat 247 ;; nil is treated like "" in concat
248 (if (memq ?s switches) ; size in K 248 (if (memq ?s switches) ; size in K
249 (format "%4d " (1+ (/ (nth 7 file-attr) 1024)))) 249 (format "%4d " (fceiling (/ (nth 7 file-attr) 1024.0))))
250 (nth 8 file-attr) ; permission bits 250 (nth 8 file-attr) ; permission bits
251 ;; numeric uid/gid are more confusing than helpful 251 ;; numeric uid/gid are more confusing than helpful
252 ;; Emacs should be able to make strings of them. 252 ;; Emacs should be able to make strings of them.