summary refs log tree commit diff
path: root/emacs/elisp
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-05-10 09:31:24 -0700
committerFranck Cuny <franck@fcuny.net>2022-05-10 09:31:24 -0700
commit8eaa4aeb4b30c39978d6df9e36f60949ec74b554 (patch)
treedb67bd3cfa92fa91031198cda36629567a963b69 /emacs/elisp
parentmy-uptime: new module to calculate availability (diff)
downloademacs.d-8eaa4aeb4b30c39978d6df9e36f60949ec74b554.tar.gz
my-uptime: rename the function to `my/uptime-is`
Using the prefix `my/` is more consistent with my other functions.
Diffstat (limited to 'emacs/elisp')
-rw-r--r--emacs/elisp/my-uptime.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/emacs/elisp/my-uptime.el b/emacs/elisp/my-uptime.el
index 3522f91..77c9957 100644
--- a/emacs/elisp/my-uptime.el
+++ b/emacs/elisp/my-uptime.el
@@ -22,16 +22,16 @@
 (defconst my-uptime/seconds-per-year (* my-uptime/seconds-per-month 12)
   "Number of seconds in a year.")
 
-(defun my-uptime/is (slo)
+(defun my/uptime-is (slo)
   "Return the amount of allowed downtime for a given SLO."
   (interactive "nSLO:")
   (let* ((slo (cond ((< slo 0) 0)
                     ((> slo 100) 100)
                     (t slo)))
          (allowed (/ (- (* 100 100) (* slo 100.0)) (* 100 100))))
-    (my-uptime/message allowed slo)))
+    (my/uptime--message allowed slo)))
 
-(defun my-uptime/message (seconds slo)
+(defun my/uptime--message (seconds slo)
   "Insert buffer text with allowed downtime based on SECONDS (derived from SLO)."
   (let ((inhibit-read-only t)
 	(buffer-undo-list t))