Skip to content

Commit

Permalink
Add rational type to all slots that encode time intervals in seconds.
Browse files Browse the repository at this point in the history
  • Loading branch information
aadcg committed Sep 13, 2022
1 parent fc4f9ed commit ddfa96c
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions libraries/download-manager/engine.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,14 @@ download.")
:initarg :header
:initform "")
(update-interval
:type float
:type rational
:accessor update-interval
:initarg :update-interval
:initform 1.0
:documentation "Time in seconds after which a notification is sent to the
`*notifications*' channel.")
(last-update
:type float
:type rational
:accessor last-update
:initarg :last-update
:initform 0.0
Expand Down
2 changes: 1 addition & 1 deletion libraries/password-manager/password.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
:documentation "The program to query for password information.")
(sleep-timer
15.0
:type float
:type rational
:documentation "The amount of time to sleep, in seconds."))
(:export-class-name-p t)
(:export-accessor-names-p t)
Expand Down
4 changes: 2 additions & 2 deletions libraries/prompter/prompter-source.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ changes.")

(notification-delay
0.1
:type float
:type rational
:documentation "Time in seconds after which to notify `update-notifier' if
`suggestions' was modified.")

Expand Down Expand Up @@ -308,7 +308,7 @@ executed. Also see `selection-actions-delay'.")

(selection-actions-delay
0.0
:type float
:type rational
:documentation "Time in seconds after which `selection-actions' run."))
(:export-class-name-p t)
(:export-accessor-names-p t)
Expand Down
2 changes: 1 addition & 1 deletion source/browser.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ issued by Control+<button1> in a new window.")
:documentation "`local-time:timestamp' of when Nyxt was started.")
(init-time
0.0
:type float
:type rational
:export nil
:documentation "Initialization time in seconds.")
(ready-p
Expand Down
2 changes: 1 addition & 1 deletion source/mode/repeat.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
:documentation "The number of times to repeat the commands for.")
(repeat-interval
1.0
:type float
:type rational
:documentation "Time in seconds after which `repeat-action' is repeated.")
(repeat-action
nil
Expand Down

0 comments on commit ddfa96c

Please sign in to comment.