diff options
author | Franck Cuny <franck@fcuny.net> | 2022-05-10 09:31:24 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2022-05-10 09:31:24 -0700 |
commit | 8eaa4aeb4b30c39978d6df9e36f60949ec74b554 (patch) | |
tree | db67bd3cfa92fa91031198cda36629567a963b69 /emacs/elisp | |
parent | my-uptime: new module to calculate availability (diff) | |
download | emacs.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 '')
-rw-r--r-- | emacs/elisp/my-uptime.el | 6 |
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)) |