Skip to content

[graph] Fix CPU graph's initial computations

This merge request reintroduces the changes from PR !151 (merged) but fixing its regression.

Firstly, I'm sorry for making you have the trouble to investigate and revert my changes for the release 47. I didn't notice the issue in the repository because I got distracted working on another project and didn't log in here. But this is a mistake I wont make again. From now on I will try to follow my changes until the release to not make more work for you maintainers.

The problem in that merge request was that the attribute LoadGraph::latest which I used wasn't the absolute iteration of the graph, but the index in the circular data structure that is used for it. So when the graph got to the other edge or the number of points was reduced the counter started again from zero, and reached my code to not draw that specific point.

What I did here in order to fix this was to create a new graph attribute LoadGraph::interation to be the absolute iteration and change the look at it to decide when to draw.

Merge request reports

Loading