Update good-night.groovy
authorSeyed Amir Hossein Aqajari <amiraj.95@uci.edu>
Tue, 6 Aug 2019 19:40:42 +0000 (12:40 -0700)
committerGitHub Enterprise <noreply@github.uci.edu>
Tue, 6 Aug 2019 19:40:42 +0000 (12:40 -0700)
official/good-night.groovy

index 3561eab..5d8d1da 100755 (executable)
@@ -163,7 +163,7 @@ private allQuiet() {
                        false
                } else {
                        def sensor = states.first()
-                   def elapsed = now() - sensor.rawDateCreated.time
+                   def elapsed = now() - 0//sensor.rawDateCreated.time
                        if (elapsed >= threshold) {
                                log.debug "No active states, and enough time has passed"
                                true