Open BombermaG opened 3 years ago
You haven't shown the data for a. Have you checked the sin function isn't actually returning all zeros?
You haven't shown the data for a. Have you checked the sin function isn't actually returning all zeros?
As you can see, "a" is not the zero line on the chart.
2 x 0 = 0. So if series a is all zero, line test will be all zeros
2 x 0 = 0. So if series a is all zero, line test will be all zeros
Look at line "a" in the first chart.
Different start and end = equals potentially different dataset. rrdtool is resampling and recomputing entirely for each new time range. I'm not saying zero data is the problem, I'm saying you should rule it out :)
RRDgraph show wrong data on graph when using CDEF and python callback. Code listing with bad result (from this example with little modification):
Result:
Look at red line test. It is straight, but must be like a 2, because CDEF:test=a,2,
After changing --end to start+2d all looks fine.
Result:![good](https://user-images.githubusercontent.com/107974/94751810-22452f00-0392-11eb-8ff7-75c2bc5a5627.png)
Something wrong with CDEF on short period.
Debian 10.6, Python 3.7.3 rrdtool 1.7.1-2, python3-rrdtool 1.7.1-2 installed by apt.