fix: statusbar shows uploaded/total + add Done counter

- Statusbar: uploaded / total (not remaining) so right side stays constant
- New "Done" counter in statusbar showing completed uploads

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Administrator 2026-03-12 03:46:30 +01:00
parent 13d220bd30
commit 2ad9f2d1eb
2 changed files with 4 additions and 1 deletions

View File

@ -1634,12 +1634,13 @@ function updateStatusBar() {
document.getElementById('sbState').textContent = stateText; document.getElementById('sbState').textContent = stateText;
document.getElementById('sbSpeed').textContent = formatSpeed(lastUploadStats.globalSpeedKbs || 0); document.getElementById('sbSpeed').textContent = formatSpeed(lastUploadStats.globalSpeedKbs || 0);
const uploadedSize = Math.max(0, stats.totalSize - stats.remainingSize); const uploadedSize = Math.max(0, stats.totalSize - stats.remainingSize);
document.getElementById('sbTotal').textContent = `${formatSize(uploadedSize)} / ${formatSize(stats.remainingSize)}`; document.getElementById('sbTotal').textContent = `${formatSize(uploadedSize)} / ${formatSize(stats.totalSize)}`;
document.getElementById('sbEta').textContent = `ETA ${etaSeconds > 0 ? formatTime(etaSeconds) : '--:--'}`; document.getElementById('sbEta').textContent = `ETA ${etaSeconds > 0 ? formatTime(etaSeconds) : '--:--'}`;
document.getElementById('sbConnections').textContent = `Aktive Verbindungen ${lastUploadStats.activeJobs || 0}`; document.getElementById('sbConnections').textContent = `Aktive Verbindungen ${lastUploadStats.activeJobs || 0}`;
document.getElementById('sbQueueCount').textContent = `Gesamt ${stats.total}`; document.getElementById('sbQueueCount').textContent = `Gesamt ${stats.total}`;
document.getElementById('sbRemainingCount').textContent = `Remaining ${stats.remaining}`; document.getElementById('sbRemainingCount').textContent = `Remaining ${stats.remaining}`;
document.getElementById('sbInProgressCount').textContent = `In Progress ${stats.inProgress}`; document.getElementById('sbInProgressCount').textContent = `In Progress ${stats.inProgress}`;
document.getElementById('sbDoneCount').textContent = `Done ${stats.done}`;
document.getElementById('sbErrorCount').textContent = `Error ${stats.errors}`; document.getElementById('sbErrorCount').textContent = `Error ${stats.errors}`;
} }

View File

@ -289,6 +289,8 @@
<span class="sb-separator">|</span> <span class="sb-separator">|</span>
<span class="sb-progress-count" id="sbInProgressCount">In Progress 0</span> <span class="sb-progress-count" id="sbInProgressCount">In Progress 0</span>
<span class="sb-separator">|</span> <span class="sb-separator">|</span>
<span class="sb-done-count" id="sbDoneCount">Done 0</span>
<span class="sb-separator">|</span>
<span class="sb-error-count" id="sbErrorCount">Error 0</span> <span class="sb-error-count" id="sbErrorCount">Error 0</span>
</div> </div>