Fix admin panel torrent stat

This commit is contained in:
Grégoire Delattre 2017-08-15 14:39:19 +02:00
parent 2f31f81d26
commit 555e6c6a35

View File

@ -44,7 +44,7 @@ function TorrentsStat(props) {
return (<span>No torrents</span>); return (<span>No torrents</span>);
} }
const percentage = Math.floor((props.data.torrentCount * 100) / props.data.count); const percentage = Math.floor((props.data.torrentCountById * 100) / props.data.count);
return ( return (
<span> <span>
{percentage}% with torrents {percentage}% with torrents