]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commit
Do not use static variables in xtr() and ytr() 873/head
authorMatwey V. Kornilov <matwey.kornilov@gmail.com>
Fri, 9 Feb 2018 10:06:39 +0000 (13:06 +0300)
committerMatwey V. Kornilov <matwey.kornilov@gmail.com>
Fri, 9 Feb 2018 10:06:39 +0000 (13:06 +0300)
commitbd5f3ea5368f39726e4e79a7f63d6a2883766fcc
tree5ac47c7e31fa170cbaab543e0385bb8cf2de9de5
parent16f6c7a8d8bfec7c9cd6c6c4860e7ab379679417
Do not use static variables in xtr() and ytr()

Using static variables for writting leads to race conditions. In order to keep
scale for axis we introduce x_pixie and y_pixie into image_desc_t.

Signed-off-by: Matwey V. Kornilov <matwey.kornilov@gmail.com>
src/rrd_graph.c
src/rrd_graph.h