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 }}