Closed dadav closed 3 years ago
nice thank you! let me look at it and test
@dadav Thanks for this helpful fix! I noticed this behavior too (had to wait for a full screen width of values to be shown before Avg values are correct). Looking forward to the merge. 👀
Thanks a lot!
By limiting the loop to the number of read values the min/max/avg values will be corretly calculated. The problem was that this loop takes the width (e.g. value 135) and loops over the given values (most of them will be 0 in the first iterations). The effect was that the min and avg values were 0 most of the time (until enough values were collected).
Fixes #50