Skip to content
This repository has been archived by the owner on Jun 7, 2023. It is now read-only.

Neighbor Stats in GUI are per Segment, not per Minute #60

Open
vuapo-eth opened this issue Mar 24, 2019 · 0 comments
Open

Neighbor Stats in GUI are per Segment, not per Minute #60

vuapo-eth opened this issue Mar 24, 2019 · 0 comments
Labels
gui Good for newcomers minor bug Further information is requested

Comments

@vuapo-eth
Copy link
Contributor

vuapo-eth commented Mar 24, 2019

To fix: Divide stats by segment interval:

const interval_ms = stats[1]["timestamp"] - stats[0]["timestamp"];
const interval_mins = interval_ms / 60000;
for(let i = 0; i < stats.length; i++) {
    stats[i]['new'] /= interval;
    stats[i]['all'] /= interval;
    // ...
}

Screenshot from 2019-03-24 19-14-00

@vuapo-eth vuapo-eth added gui Good for newcomers minor bug Further information is requested labels Mar 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
gui Good for newcomers minor bug Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant