libp2p / observer-toolkit

🐣 [WIP] toolkit for building libp2p introspection widgets + a few useful out-of-the-box widgets
https://libp2p.io
MIT License
2 stars 2 forks source link

Socket adjustments for configurable intervals #51

Closed ovhemert closed 4 years ago

ovhemert commented 4 years ago

Configurable state interval and cut-off times. Still W.I.P.

AlanSl commented 4 years ago

Also needs the new arg adding to generate.test.js's generateComplete. I'd set that to 1000 so old tests are still valid:

const initialConnCount = 6
const durationSeconds = 60
const durationSnapshot = 1000 // <---

const bin = generateComplete(initialConnCount, durationSeconds, durationSnapshot)