🐛 Fix torrent size calculation
This commit is contained in:
@@ -73,7 +73,7 @@ export const BitTorrrentQueueItem = ({ torrent, app }: TorrentQueueItemProps) =>
|
|||||||
</Popover>
|
</Popover>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<Text size="xs">{humanFileSize(size)}</Text>
|
<Text size="xs">{humanFileSize(size, false)}</Text>
|
||||||
</td>
|
</td>
|
||||||
{width > MIN_WIDTH_MOBILE && (
|
{width > MIN_WIDTH_MOBILE && (
|
||||||
<td>
|
<td>
|
||||||
@@ -188,15 +188,15 @@ const TorrentQueuePopover = ({ torrent, app }: TorrentQueueItemProps) => {
|
|||||||
<List.Item icon={<IconDatabase size={16} />}>
|
<List.Item icon={<IconDatabase size={16} />}>
|
||||||
<Text>
|
<Text>
|
||||||
{t('card.popover.metrics.totalSelectedSize', {
|
{t('card.popover.metrics.totalSelectedSize', {
|
||||||
totalSize: humanFileSize(torrent.totalSelected),
|
totalSize: humanFileSize(torrent.totalSelected, false),
|
||||||
})}
|
})}
|
||||||
</Text>
|
</Text>
|
||||||
</List.Item>
|
</List.Item>
|
||||||
<List.Item icon={<IconDownload size={16} />}>
|
<List.Item icon={<IconDownload size={16} />}>
|
||||||
<Group spacing="xs">
|
<Group spacing="xs">
|
||||||
<Text>{humanFileSize(torrent.totalDownloaded)}</Text>
|
<Text>{humanFileSize(torrent.totalDownloaded, false)}</Text>
|
||||||
<IconUpload size={16} />
|
<IconUpload size={16} />
|
||||||
<Text>{humanFileSize(torrent.totalUploaded)}</Text>
|
<Text>{humanFileSize(torrent.totalUploaded, false)}</Text>
|
||||||
</Group>
|
</Group>
|
||||||
</List.Item>
|
</List.Item>
|
||||||
<List.Item icon={<IconInfoCircle size={16} />}>
|
<List.Item icon={<IconInfoCircle size={16} />}>
|
||||||
|
|||||||
Reference in New Issue
Block a user