From ee809fcf675aa0d80ed8c488c6e849776d67b214 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wolfgang=20St=C3=B6ggl?= Date: Tue, 4 Jun 2019 10:14:11 +0200 Subject: [PATCH] Fix --use-nan-for-all-missing-data - Fixes: https://github.com/oetiker/rrdtool-1.x/issues/918 --- src/rrd_graph.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.2