Reduce wire ID length (we're not worried about collisions really)
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
7312b279ea
commit
02f789f90d
|
@ -3,7 +3,7 @@ import prettyBytes from 'pretty-bytes'
|
|||
|
||||
const generateWireStatistics = (wires) => {
|
||||
return wires.map(wire => ({
|
||||
peerId: sha1(wire.peerId).toString().substring(0, 100),
|
||||
peerId: sha1(wire.peerId).toString().substring(0, 5),
|
||||
remoteAddress: wire.remoteAddress,
|
||||
uploadSpeed: prettyBytes(wire.uploadSpeed()) + 'ps',
|
||||
uploaded: prettyBytes(wire.uploaded),
|
||||
|
|
Loading…
Reference in New Issue