tenox7 / ttyplot

a realtime plotting utility for terminal/console with data input from stdin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Average should be calculated from the available samples instead of the total number of potentially availalbe values

MIvanchev opened this issue · comments

When I run my plots the initially average is very low and gradually increases to the expected value. I think it's better if the average is correct right off the start by dividing the sum by the number of samples really available vs by the total number of displayable samples. It would be also useful if one can specify the interval / number of samples over which the statistics are generated because for small terminal sizes they'd be jumpy.

ha interesting, you're totally right, I'll try to add it in

also PRs are welcome 🤣

I'll try! :)

So it appears the first part of this issue was resolved through a3ed604 3 years ago :)