Change the datatype of 'enable_stats' to 'flag'

This commit is contained in:
Feng Lee 2017-02-21 18:46:10 +08:00
parent 3cdf2377c8
commit ff60578a7d
2 changed files with 6 additions and 6 deletions

View File

@ -113,8 +113,8 @@ mqtt.max_packet_size = 64KB
## Client Idle Timeout (Second) ## Client Idle Timeout (Second)
mqtt.client.idle_timeout = 30s mqtt.client.idle_timeout = 30s
## Enable client Stats: seconds or off ## Enable client Stats: on | off
mqtt.client.enable_stats = off mqtt.client.enable_stats = on
##-------------------------------------------------------------------- ##--------------------------------------------------------------------
## MQTT Session ## MQTT Session
@ -136,8 +136,8 @@ mqtt.session.max_awaiting_rel = 100
## Awaiting PUBREL Timeout ## Awaiting PUBREL Timeout
mqtt.session.await_rel_timeout = 20s mqtt.session.await_rel_timeout = 20s
## Enable Statistics at the Interval(seconds) ## Enable Statistics: on | off
mqtt.session.enable_stats = off mqtt.session.enable_stats = on
## Expired after 1 day: ## Expired after 1 day:
## w - week ## w - week

View File

@ -329,7 +329,7 @@ end}.
%% @doc Enable Stats of Client. %% @doc Enable Stats of Client.
{mapping, "mqtt.client.enable_stats", "emqttd.client", [ {mapping, "mqtt.client.enable_stats", "emqttd.client", [
{default, off}, {default, off},
{datatype, [{duration, ms}, flag]} {datatype, flag}
]}. ]}.
%% @doc Client %% @doc Client
@ -375,7 +375,7 @@ end}.
%% @doc Enable Stats %% @doc Enable Stats
{mapping, "mqtt.session.enable_stats", "emqttd.session", [ {mapping, "mqtt.session.enable_stats", "emqttd.session", [
{default, off}, {default, off},
{datatype, [{duration, ms}, flag]} {datatype, flag}
]}. ]}.
%% @doc Session Expiry Interval %% @doc Session Expiry Interval