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

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

@vuapo-eth

Description

@vuapo-eth

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    guiGood for newcomersminor bugFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions