From 85e1a356fe055587f1aefef9f00af2ed507c7723 Mon Sep 17 00:00:00 2001 From: o9000 Date: Wed, 31 May 2017 23:06:47 +0200 Subject: [PATCH] Fix incorrect config warning --- src/config.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config.c b/src/config.c index 297aaa1..899cc23 100644 --- a/src/config.c +++ b/src/config.c @@ -652,8 +652,8 @@ void add_entry(char *key, char *value) Execp *execp = get_or_create_last_execp(); execp->backend->interval = 0; int v = atoi(value); - if (v < 1) { - fprintf(stderr, "execp_interval must be an integer >= 1\n"); + if (v < 0) { + fprintf(stderr, "execp_interval must be an integer >= 0\n"); } else { execp->backend->interval = v; }