From 8eaa4aeb4b30c39978d6df9e36f60949ec74b554 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Tue, 10 May 2022 09:31:24 -0700 Subject: my-uptime: rename the function to `my/uptime-is` Using the prefix `my/` is more consistent with my other functions. --- emacs/elisp/my-uptime.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'emacs') 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)) -- cgit 1.4.1