emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/emacs-gc-stats c08135aeaa 12/24: Fix variable name


From: ELPA Syncer
Subject: [elpa] externals/emacs-gc-stats c08135aeaa 12/24: Fix variable name
Date: Sat, 10 Jun 2023 12:58:45 -0400 (EDT)

branch: externals/emacs-gc-stats
commit c08135aeaa7e4ed44afc3f0b1c018f8d9ba219b3
Author: Ihor Radchenko <yantar92@posteo.net>
Commit: Ihor Radchenko <yantar92@posteo.net>

    Fix variable name
    
    * emacs-gc-stats.el (emacs-gc-stats-mode): Fix typo.
---
 emacs-gc-stats.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/emacs-gc-stats.el b/emacs-gc-stats.el
index 39a46a9433..1da4c24f9b 100644
--- a/emacs-gc-stats.el
+++ b/emacs-gc-stats.el
@@ -193,7 +193,7 @@ Otherwise, collect symbol."
         (unless emacs-gc-stats--data
           (emacs-gc-stats--collect-init))
         ;; 5 minutes counter.
-        (setq emacs-gc-stats--idle-time
+        (setq emacs-gc-stats--idle-timer
               (run-with-timer
                emacs-gc-stats-idle-delay
                emacs-gc-stats-idle-delay
@@ -201,8 +201,8 @@ Otherwise, collect symbol."
         (add-hook 'post-gc-hook #'emacs-gc-stats--collect-gc)
         (add-hook 'after-init-hook #'emacs-gc-stats--collect-init-end)
         (add-hook 'kill-emacs-hook #'emacs-gc-stats-save-session))
-    (when (timerp emacs-gc-stats--idle-time)
-      (cancel-timer emacs-gc-stats--idle-time))
+    (when (timerp emacs-gc-stats--idle-timer)
+      (cancel-timer emacs-gc-stats--idle-timer))
     (remove-hook 'post-gc-hook #'emacs-gc-stats--collect-gc)
     (remove-hook 'after-init-hook #'emacs-gc-stats--collect-init-end)
     (remove-hook 'kill-emacs-hook #'emacs-gc-stats-save-session)))



reply via email to

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