X-Git-Url: https://arthur.barton.de/gitweb/?a=blobdiff_plain;f=src%2Frrdhost.c;h=a2310330d2ec0fdf27507a253039bfe333f38d69;hb=909e26f825bc1f6f907231761412c885331fec7e;hp=81ff96f892415a82a80f6a2ff2f330203a8e9caa;hpb=8af280907530e1bcfffd4c8ed38fb311de64f0ab;p=netdata.git diff --git a/src/rrdhost.c b/src/rrdhost.c index 81ff96f8..a2310330 100644 --- a/src/rrdhost.c +++ b/src/rrdhost.c @@ -97,7 +97,7 @@ RRDHOST *rrdhost_create(const char *hostname, RRDHOST *host = callocz(1, sizeof(RRDHOST)); - host->rrd_update_every = update_every; + host->rrd_update_every = (update_every > 0)?update_every:1; host->rrd_history_entries = align_entries_to_pagesize(memory_mode, entries); host->rrd_memory_mode = memory_mode; host->health_enabled = (memory_mode == RRD_MEMORY_MODE_NONE)? 0 : health_enabled;