diff options
| author | Juanma Barranquero | 2013-06-21 02:53:33 +0200 |
|---|---|---|
| committer | Juanma Barranquero | 2013-06-21 02:53:33 +0200 |
| commit | 7a65a0b2e87e9e24f600558c67a68fc4cf6e1998 (patch) | |
| tree | 08c313f1ebb1197fbfee7110ca7f897c0846c813 | |
| parent | 1493c2af6593ebabc5c966d1162812456efbee24 (diff) | |
| download | emacs-7a65a0b2e87e9e24f600558c67a68fc4cf6e1998.tar.gz emacs-7a65a0b2e87e9e24f600558c67a68fc4cf6e1998.zip | |
lisp/profiler.el (profiler-format-number): Use log, not log10.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/profiler.el | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 0ae2a09cc4c..5811fd1b0b2 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2013-06-21 Juanma Barranquero <lekktu@gmail.com> | ||
| 2 | |||
| 3 | * profiler.el (profiler-format-number): Use log, not log10. | ||
| 4 | |||
| 1 | 2013-06-20 Juanma Barranquero <lekktu@gmail.com> | 5 | 2013-06-20 Juanma Barranquero <lekktu@gmail.com> |
| 2 | 6 | ||
| 3 | * term/x-win.el (emacs-session-filename): Use `locate-user-emacs-file'. | 7 | * term/x-win.el (emacs-session-filename): Use `locate-user-emacs-file'. |
diff --git a/lisp/profiler.el b/lisp/profiler.el index 093a01a8602..609a0308cf0 100644 --- a/lisp/profiler.el +++ b/lisp/profiler.el | |||
| @@ -60,7 +60,7 @@ | |||
| 60 | (defun profiler-format-number (number) | 60 | (defun profiler-format-number (number) |
| 61 | "Format NUMBER in human readable string." | 61 | "Format NUMBER in human readable string." |
| 62 | (if (and (integerp number) (> number 0)) | 62 | (if (and (integerp number) (> number 0)) |
| 63 | (cl-loop with i = (% (1+ (floor (log10 number))) 3) | 63 | (cl-loop with i = (% (1+ (floor (log number 10))) 3) |
| 64 | for c in (append (number-to-string number) nil) | 64 | for c in (append (number-to-string number) nil) |
| 65 | if (= i 0) | 65 | if (= i 0) |
| 66 | collect ?, into s | 66 | collect ?, into s |