Skip to content

Commit

Permalink
Fix publishing of $SYS/broker/clients/maximum.
Browse files Browse the repository at this point in the history
  • Loading branch information
ralight committed May 31, 2016
1 parent 6f5f445 commit ff78cd7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/sys_tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit ff78cd7

Please sign in to comment.