aboutsummaryrefslogtreecommitdiff
path: root/cgi
diff options
context:
space:
mode:
authorNat Lasseter <user@4574.co.uk>2025-05-14 11:22:28 +0100
committerNat Lasseter <user@4574.co.uk>2025-05-14 11:22:28 +0100
commite74db3d02a14742b9eb47c3bea9467858c921a38 (patch)
tree99bfb8127d67f9563a8ded2ba788220d120bee40 /cgi
parent721607120366542241fa566b5e72812861f30eb2 (diff)
[toplinks] trialling new waste thing
Diffstat (limited to 'cgi')
-rw-r--r--cgi/home.cgi2
1 files changed, 1 insertions, 1 deletions
diff --git a/cgi/home.cgi b/cgi/home.cgi
index 3e8aeeb..ec600a0 100644
--- a/cgi/home.cgi
+++ b/cgi/home.cgi
@@ -51,7 +51,7 @@ def graphic_collection(resp)
events = Array.new(28) { "empty" }
resp.each { |coll|
- days = ((Time.parse(coll["nextCollection"]) - Time.now) / (60*60*24)).ceiling
+ days = ((Time.parse(coll["nextCollection"]) - Time.now) / (60*60*24)).ceil
events[days*2] = coll["service"].downcase
events[days*2 - 1] = coll["service"].downcase
}