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) {
53
53
const { movingAverages, snapshot } = stats
54
54
55
55
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 ) )
60
60
}
61
61
}
62
62
You can’t perform that action at this time.
0 commit comments