From: Wolfgang Stöggl Date: Tue, 4 Jun 2019 08:14:11 +0000 (+0200) Subject: Fix --use-nan-for-all-missing-data X-Git-Tag: v1.8.0~97 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=ee809fcf675aa0d80ed8c488c6e849776d67b214;p=thirdparty%2Frrdtool-1.x.git Fix --use-nan-for-all-missing-data - Fixes: https://github.com/oetiker/rrdtool-1.x/issues/918 --- diff --git a/src/rrd_graph.c b/src/rrd_graph.c index 5a78f573..f5d2cdec 100644 --- a/src/rrd_graph.c +++ b/src/rrd_graph.c @@ -1072,7 +1072,7 @@ int data_fetch( im->gdes[i].ds = ii; } } - if (im->gdes[i].ds == -1) { + if ((im->gdes[i].ds == -1) && !(im->extra_flags & ALLOW_MISSING_DS)) { rrd_set_error("No DS called '%s' in '%s'", im->gdes[i].ds_nam, im->gdes[i].rrd); return -1;