tenox7 / ttyplot

a realtime plotting utility for terminal/console with data input from stdin
Apache License 2.0
961 stars 43 forks source link

Minimum and average calculations incorrect #50

Closed paulie-g closed 3 years ago

paulie-g commented 3 years ago

An input of '1 2 3' displays a minimum of 0.0, and an average of 0.0. getminmax() is incorrectly calculating them over values[0..plotwidth] instead of [0..n].

tenox7 commented 3 years ago

very interesting find, thank you for reporting I will look in to it