The Lambda Lab
/
projects
/
microbotany.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
024ca55
)
Fixed water level rendering bug.
author
Tim Vaughan
<plugd@thelambdalab.xyz>
Fri, 5 Jun 2020 07:23:30 +0000
(09:23 +0200)
committer
Tim Vaughan
<plugd@thelambdalab.xyz>
Fri, 5 Jun 2020 07:23:30 +0000
(09:23 +0200)
garden.scm
patch
|
blob
|
history
diff --git
a/garden.scm
b/garden.scm
index
ebcdf77
..
3664612
100644
(file)
--- a/
garden.scm
+++ b/
garden.scm
@@
-86,7
+86,7
@@
(if last-watered
(let* ((now (current-seconds))
(1day (* 24 3600))
- (remaining-pc (quotient (* 100 (
- 1day (- now last-watered
))) 1day))
+ (remaining-pc (quotient (* 100 (
max 0 (- 1day (- now last-watered)
))) 1day))
(filled (quotient remaining-pc 4))
(unfilled (- 25 filled)))
(print "["