Fix publishing of $SYS/broker/clients/maximum.

This commit is contained in:
Roger A. Light 2016-05-31 09:57:28 +01:00
parent 6f5f445196
commit ff78cd7873
2 changed files with 2 additions and 1 deletions

View File

@ -20,6 +20,7 @@ Broker:
#170.
- mosquitto_passwd utility now correctly deals with unknown command line
arguments in all cases. Closes #169.
- Fix publishing of $SYS/broker/clients/maximum
Client library:
- Fix the case where a message received just before the keepalive timer

View File

@ -44,7 +44,7 @@ static void _sys_update_clients(struct mosquitto_db *db, char *buf)
{
static unsigned int client_count = -1;
static int clients_expired = -1;
static unsigned int client_max = -1;
static unsigned int client_max = 0;
static unsigned int disconnected_count = -1;
static unsigned int connected_count = -1;