Skip to content
Snippets Groups Projects
Commit 6d01d683 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Clear (set to 0) each server's "highwater" topic upon startup

The other server stats (e.g. error_count, served) are zeroed upon startup, so
the highwater mark should be zeroed too.
parent 8dfbba2f
No related branches found
No related tags found
1 merge request!455Update branch with changes from master
......@@ -651,6 +651,7 @@ int mqtt_startup(struct mqtt* mqtt, scfg_t* cfg, struct startup* startup, const
mqtt_pub_strval(mqtt, TOPIC_HOST_LEVEL, NULL, startup->host_name);
mqtt_pub_strval(mqtt, TOPIC_SERVER, "version", version);
mqtt_pub_uintval(mqtt, TOPIC_SERVER, "served", mqtt->served);
mqtt_pub_uintval(mqtt, TOPIC_SERVER, "highwater", 0);
mqtt_pub_uintval(mqtt, TOPIC_SERVER, "error_count", mqtt->error_count);
#ifdef USE_MOSQUITTO
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment