🐛 Fix torrent size calculation

This commit is contained in:
Manuel
2023-01-20 23:38:35 +01:00
parent 002b0d809c
commit 1455a0b72f

View File

@@ -73,7 +73,7 @@ export const BitTorrrentQueueItem = ({ torrent, app }: TorrentQueueItemProps) =>
</Popover>
</td>
<td>
<Text size="xs">{humanFileSize(size)}</Text>
<Text size="xs">{humanFileSize(size, false)}</Text>
</td>
{width > MIN_WIDTH_MOBILE && (
<td>
@@ -188,15 +188,15 @@ const TorrentQueuePopover = ({ torrent, app }: TorrentQueueItemProps) => {
<List.Item icon={<IconDatabase size={16} />}>
<Text>
{t('card.popover.metrics.totalSelectedSize', {
totalSize: humanFileSize(torrent.totalSelected),
totalSize: humanFileSize(torrent.totalSelected, false),
})}
</Text>
</List.Item>
<List.Item icon={<IconDownload size={16} />}>
<Group spacing="xs">
<Text>{humanFileSize(torrent.totalDownloaded)}</Text>
<Text>{humanFileSize(torrent.totalDownloaded, false)}</Text>
<IconUpload size={16} />
<Text>{humanFileSize(torrent.totalUploaded)}</Text>
<Text>{humanFileSize(torrent.totalUploaded, false)}</Text>
</Group>
</List.Item>
<List.Item icon={<IconInfoCircle size={16} />}>