diff --git a/src/openflow/inputs/co2.inko b/src/openflow/inputs/co2.inko index 03eb861..df9447c 100644 --- a/src/openflow/inputs/co2.inko +++ b/src/openflow/inputs/co2.inko @@ -13,7 +13,7 @@ let SAMPLE_INTERVAL = 30 # The interval (in seconds) at which to calculate a new CO2 value based on the # gathered samples. -let UPDATE_INTERVAL = 600 +let UPDATE_INTERVAL = 900 # How many samples we should gather before updating the CO2 levels. let pub SAMPLES = UPDATE_INTERVAL / SAMPLE_INTERVAL diff --git a/test/openflow/inputs/test_co2.inko b/test/openflow/inputs/test_co2.inko index 8556a12..fbc09ef 100644 --- a/test/openflow/inputs/test_co2.inko +++ b/test/openflow/inputs/test_co2.inko @@ -122,9 +122,11 @@ fn pub tests(t: mut Tests) { let samples = recover [ 875, 875, 875, 875, 875, 875, 875, 875, 875, 875, 875, 875, 875, 875, 875, 875, 875, 875, 875, 875, + 875, 875, 875, 875, 875, 875, 875, 875, 875, 875, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, + 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, ] let input = input(state, samples: samples) @@ -174,14 +176,17 @@ fn pub tests(t: mut Tests) { # The first update. 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, + 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, # The second update, where we'll maintain the speed for a while. 650, 650, 650, 650, 650, 650, 650, 650, 650, 650, 650, 650, 650, 650, 650, 650, 650, 650, 650, 650, + 650, 650, 650, 650, 650, 650, 650, 650, 650, 650, # The third update, where we'll reduce the speed. 550, 550, 550, 550, 550, 550, 550, 550, 550, 550, 550, 550, 550, 550, 550, 550, 550, 550, 550, 550, + 550, 550, 550, 550, 550, 550, 550, 550, 550, 550, ] let input = input(state, samples: samples) @@ -201,14 +206,17 @@ fn pub tests(t: mut Tests) { # The first update. 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, + 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, # The second update. 700, 700, 700, 700, 700, 700, 700, 700, 700, 700, 700, 700, 700, 700, 700, 700, 700, 700, 700, 700, + 700, 700, 700, 700, 700, 700, 700, 700, 700, 700, # The third update. 550, 550, 550, 550, 550, 550, 550, 550, 550, 550, 550, 550, 550, 550, 550, 550, 550, 550, 550, 550, + 550, 550, 550, 550, 550, 550, 550, 550, 550, 550, ] let input = input(state, samples: samples) @@ -229,10 +237,12 @@ fn pub tests(t: mut Tests) { # The first update. 700, 700, 700, 700, 700, 700, 700, 700, 700, 700, 700, 700, 700, 700, 700, 700, 700, 700, 700, 700, + 700, 700, 700, 700, 700, 700, 700, 700, 700, 700, # The second update. 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, + 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, ] let input = input(state, samples: samples) @@ -250,14 +260,17 @@ fn pub tests(t: mut Tests) { # The first update. 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, + 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, # The second update. 700, 700, 700, 700, 700, 700, 700, 700, 700, 700, 700, 700, 700, 700, 700, 700, 700, 700, 700, 700, + 700, 700, 700, 700, 700, 700, 700, 700, 700, 700, # The third update. 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, + 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, ] let input = input(state, samples: samples) @@ -278,10 +291,12 @@ fn pub tests(t: mut Tests) { # Update 1 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, + 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, # Update 2 675, 675, 675, 675, 675, 675, 675, 675, 675, 675, 675, 675, 675, 675, 675, 675, 675, 675, 675, 675, + 675, 675, 675, 675, 675, 675, 675, 675, 675, 675, ] let input = input(state, samples: samples)