commit 2f41e31293896d9310b721b6ba5d7088c0094f5a
parent a313dc1e73650c6048179f9bd025ce5aec6bec20
Author: ctucx <ctucx@git.ctu.cx>
Date: Sun, 19 Jan 2020 18:50:41 +0000
parent a313dc1e73650c6048179f9bd025ce5aec6bec20
Author: ctucx <ctucx@git.ctu.cx>
Date: Sun, 19 Jan 2020 18:50:41 +0000
„src/frontend_prometheus.nim“ ändern
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/frontend_prometheus.nim b/src/frontend_prometheus.nim @@ -41,7 +41,7 @@ proc processPrometheusClient(req: Request) {.async,gcsafe.} = if device.type == LacrosseTempSensor: resp.addVal("lacrossetempsensor_temperature", key, $(server.state[key].temperature), $(server.state[key].lastUpdated2 * 1000)) resp.addVal("lacrossetempsensor_humidity", key, $(server.state[key].humidity), $(server.state[key].lastUpdated2 * 1000)) - resp.addVal("lacrossetempsensor_weakbattery", key, fmtBool(server.state[key].weakBattery), $(server.state[key]. * 1000)) + resp.addVal("lacrossetempsensor_weakbattery", key, fmtBool(server.state[key].weakBattery), $(server.state[key].lastUpdated2 * 1000)) await req.respond(Http200, resp) else: