From 278e8303c4f54f9e0a0e2ae5794bb5c9411077d9 Mon Sep 17 00:00:00 2001 From: Leo Vasanko Date: Mon, 13 Nov 2023 00:37:56 -0800 Subject: [PATCH] Upload manager UI fix/tuning. --- frontend/src/components/UploadButton.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/UploadButton.vue b/frontend/src/components/UploadButton.vue index d3ca167..21e881c 100644 --- a/frontend/src/components/UploadButton.vue +++ b/frontend/src/components/UploadButton.vue @@ -76,7 +76,7 @@ const speed = computed(() => { if (tsince > 1 / s) return 1 / tsince // Next block is late or not coming, decay return s // "Current speed" }) -const speeddisp = computed(() => speed.value ? speed.value.toFixed(speed.value < 100 ? 1 : 0) + '\u202FMB/s': 'stalled') +const speeddisp = computed(() => speed.value ? speed.value.toFixed(speed.value < 10 ? 1 : 0) + '\u202FMB/s': 'stalled') setInterval(() => { if (Date.now() - uprogress.tlast > 3000) { // Reset @@ -219,7 +219,7 @@ onUnmounted(() => { {{ (uprogress.filepos / uprogress.filesize * 100).toFixed(0) + '\u202F%' }} - + {{ (uprogress.uploaded / 1e6).toFixed(0) + '\u202F/\u202F' + (uprogress.total / 1e6).toFixed(0) + '\u202FMB' }} {{ speeddisp }}