Merge pull request #1541 from InterN0te/dev-fixTorrentSpeed-Mb-MB

Fix Mb/s / MB/s conversion error in torrents speed
This commit is contained in:
Thomas Camlong
2023-11-01 22:59:41 +01:00
committed by GitHub

View File

@@ -81,14 +81,14 @@ export const BitTorrentQueueItem = ({ torrent, width, app }: TorrentQueueItemPro
{width > MIN_WIDTH_MOBILE && (
<td>
<Text className={classes.noTextBreak} size="xs">
{downloadSpeed > 0 ? `${downloadSpeed.toFixed(1)} Mb/s` : '-'}
{downloadSpeed > 0 ? `${downloadSpeed.toFixed(1)} MB/s` : '-'}
</Text>
</td>
)}
{width > MIN_WIDTH_MOBILE && (
<td>
<Text className={classes.noTextBreak} size="xs">
{uploadSpeed > 0 ? `${uploadSpeed.toFixed(1)} Mb/s` : '-'}
{uploadSpeed > 0 ? `${uploadSpeed.toFixed(1)} MB/s` : '-'}
</Text>
</td>
)}