fixed key to short poll time
This commit is contained in:
@@ -63,7 +63,7 @@ def main() -> int:
|
|||||||
obj=(data, {"upsname":tag})
|
obj=(data, {"upsname":tag})
|
||||||
))
|
))
|
||||||
|
|
||||||
sleep(T_LONG if data.get("STATUS", "ONLINE") == "ONLINE" else T_SHORT)
|
sleep(T_LONG if data.get("status", "ONLINE") == "ONLINE" else T_SHORT)
|
||||||
i += 1
|
i += 1
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
LOGGER.warning("Stopping...")
|
LOGGER.warning("Stopping...")
|
||||||
|
|||||||
Reference in New Issue
Block a user