]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commit
Add deamon variable to cache key 756/head
authorThilo Bangert <thilo.bangert@globalconnect.dk>
Wed, 9 Nov 2016 12:07:34 +0000 (13:07 +0100)
committerThilo Bangert <thilo.bangert@globalconnect.dk>
Wed, 9 Nov 2016 12:07:34 +0000 (13:07 +0100)
commit12173276b68792d82b08e2571dc28429757bdacf
tree192a16b532f80cf61a9f8e9d67f5e74b29cef5e9
parent1d6aa00686db4b0adc823b623a37bbf2889bdd89
Add deamon variable to cache key

This allows for two identically named rrd's on two different rrdcache daemons
to be graphed on the samen graph. Without this patch the following

rrdtool graph - --start=1478559600 --end=1478685600 --width=1000 --step=300 --imgformat=JSONTIME \
  DEF:rrd1=aname.rrd:ds_name:AVERAGE:daemon=rrdcache1 \
  DEF:rrd2=aname.rrd:ds_name:AVERAGE:daemon=rrdcache2

would not actually fetch any data from rrdcache2, but rrd2 would reuse the data from rrd1,
since the current logic determines them to be equal.

With this patch rrd2 data is actually fetched from rrdcache2.
src/rrd_graph.h