Skip to content
This repository has been archived by the owner on Aug 29, 2020. It is now read-only.

Only scale by visible network values #93

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

CosmicHorrorDev
Copy link

Previously the scaling would be based on all network entries recorded instead of just the network entries displayed. This meant that high transmission or reception rates would cause the scaling to drown out any small entries even if the high rates were not being displayed. This change passes in just the amount of samples needed to fill the block and let's the Sparkline calculate the max internally.

Luckily all the hard work seemed to be done already so this change was a joy to make.

Possibly related (#90)

… of just the entries displayed. This meant that high transmission or reception rates would cause the scaling to drown out any small entries even if the high rates were not being displayed. This change passes in just the amount of samples needed to fill the block instead.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant