diff --git a/src/background/api.js b/src/background/api.js index e19cf5a..979d4e4 100644 --- a/src/background/api.js +++ b/src/background/api.js @@ -462,7 +462,7 @@ module.exports = ({ callback({ size: p2p.size, - torrents: p2p.peersList().reduce((a, b) => (a.info ? a.info.torrents || 0 : 0) + (b.info ? b.info.torrents || 0 : 0), 0) + torrents: p2p.peersList().reduce((prev, peer) => prev + (peer.info ? peer.info.torrents || 0 : 0), 0) }) });