diff options
Diffstat (limited to 'emacs')
-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)) |