From: Andre Noll Date: Thu, 20 Dec 2012 13:36:42 +0000 (+0100) Subject: Merge branch 't/zero-rsync-fix' X-Git-Tag: v0.1.5~4 X-Git-Url: http://git.tuebingen.mpg.de/?p=dss.git;a=commitdiff_plain;h=ddd930000a7015369135258993be63c1a288fbf9;hp=42263e3bce7826703a531d0113d706fe3f3536a4 Merge branch 't/zero-rsync-fix' --- diff --git a/dss.c b/dss.c index 354bdb8..11c1d06 100644 --- a/dss.c +++ b/dss.c @@ -939,8 +939,9 @@ static int check_config(void) return -E_INVALID_NUMBER; } DSS_DEBUG_LOG(("unit interval: %i day(s)\n", conf.unit_interval_arg)); - if (conf.num_intervals_arg <= 0) { - DSS_ERROR_LOG(("bad number of intervals %i\n", conf.num_intervals_arg)); + if (conf.num_intervals_arg <= 0 || conf.num_intervals_arg > 30) { + DSS_ERROR_LOG(("bad number of intervals: %i\n", + conf.num_intervals_arg)); return -E_INVALID_NUMBER; } DSS_DEBUG_LOG(("number of intervals: %i\n", conf.num_intervals_arg));