chore(ui): use human readable transfer size for total bytes sent/received (#751)
Docker / Build and Push (push) Waiting to run
Docker / release (push) Blocked by required conditions
github-pages / deploy (push) Waiting to run
Test / make test (push) Waiting to run

Signed-off-by: Nick Ruffles <nick@ruffles.dev>
This commit is contained in:
Nick Ruffles
2026-09-09 21:53:56 +02:00
committed by GitHub
parent 4337fb7809
commit ebeaadd7de
+3 -2
View File
@@ -12,6 +12,7 @@ import { settingsStore } from "@/stores/settings";
import { profileStore } from "@/stores/profile";
import { base64_url_encode } from '@/helpers/encoding';
import { apiWrapper } from "@/helpers/fetch-wrapper";
import {humanFileSize} from '@/helpers/utils';
const { t } = useI18n()
@@ -194,8 +195,8 @@ function ConfigQrUrl() {
<div class="col-md-12">
<h4>{{ $t('modals.peer-view.traffic') }}</h4>
<p><i class="fas fa-long-arrow-alt-down" :title="$t('modals.peer-view.download')"></i> {{
selectedStats.BytesReceived }} Bytes / <i class="fas fa-long-arrow-alt-up"
:title="$t('modals.peer-view.upload')"></i> {{ selectedStats.BytesTransmitted }} Bytes</p>
humanFileSize(selectedStats.BytesReceived) }} / <i class="fas fa-long-arrow-alt-up"
:title="$t('modals.peer-view.upload')"></i> {{ humanFileSize(selectedStats.BytesTransmitted) }}</p>
<h4>{{ $t('modals.peer-view.connection-status') }}</h4>
<ul>
<li>{{ $t('modals.peer-view.pingable') }}: {{ selectedStats.IsPingable }}</li>