peers widget placeholder added

This commit is contained in:
Daniel Shleifman
2021-06-04 21:54:41 +03:00
parent 2fa135cb73
commit d8e1767dc1

View File

@@ -5,7 +5,7 @@ export function humanizeSize(size) {
} }
export function getPeerString(torrent) { export function getPeerString(torrent) {
if (!torrent || !torrent.connected_seeders) return '' if (!torrent || !torrent.connected_seeders) return '[0] 0 / 0'
return `[${torrent.connected_seeders}] ${torrent.active_peers} / ${torrent.total_peers}` return `[${torrent.connected_seeders}] ${torrent.active_peers} / ${torrent.total_peers}`
} }