File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/ipfs-core/src/components/stats Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -53,10 +53,10 @@ function getBandwidthStats (libp2p, opts) {
5353 const { movingAverages, snapshot } = stats
5454
5555 return {
56- totalIn : BigInt ( snapshot . dataReceived . toString ( ) ) ,
57- totalOut : BigInt ( snapshot . dataSent . toString ( ) ) ,
58- rateIn : BigInt ( movingAverages . dataReceived [ 60000 ] . movingAverage ( ) / 60 ) ,
59- rateOut : BigInt ( movingAverages . dataSent [ 60000 ] . movingAverage ( ) / 60 )
56+ totalIn : BigInt ( snapshot . dataReceived . integerValue ( ) . toString ( ) ) ,
57+ totalOut : BigInt ( snapshot . dataSent . integerValue ( ) . toString ( ) ) ,
58+ rateIn : BigInt ( Math . round ( movingAverages . dataReceived [ 60000 ] . movingAverage ( ) / 60 ) ) ,
59+ rateOut : BigInt ( Math . round ( movingAverages . dataSent [ 60000 ] . movingAverage ( ) / 60 ) )
6060 }
6161}
6262
You can’t perform that action at this time.
0 commit comments