X-Git-Url: http://git.tuebingen.mpg.de/?p=dss.git;a=blobdiff_plain;f=dss.c;h=258cd3fe862054298f078e6815d152bdd56f162d;hp=7620cfee1733d55ef99baaf956e11089db9b40d6;hb=024b342374b97ce23ac35f4ff7da146f1088d94b;hpb=6c76799c7334a12926dc1cf0c32670423cbc954f diff --git a/dss.c b/dss.c index 7620cfe..258cd3f 100644 --- a/dss.c +++ b/dss.c @@ -932,8 +932,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));