Round status on dashboard to match title

This commit is contained in:
2025-11-09 08:32:02 -05:00
parent 43a09fd193
commit e19549a3a4

View File

@ -490,7 +490,7 @@ async function loadStatus() {
html += '<p>Blocks: ' + blocks + ' ' + pruned + '</p>'; html += '<p>Blocks: ' + blocks + ' ' + pruned + '</p>';
html += '<div class="progress-wrap"><div class="progress-bar" id="syncbar"></div></div>'; html += '<div class="progress-wrap"><div class="progress-bar" id="syncbar"></div></div>';
html += '<p><small>Sync progress: ' + progress.toFixed(2) + '%'; html += '<p><small>Sync progress: ' + progress.toFixed(1) + '%';
if (ibd) { if (ibd) {
if (etaSeconds && isFinite(etaSeconds) && etaSeconds > 0) { if (etaSeconds && isFinite(etaSeconds) && etaSeconds > 0) {
const etaDate = new Date(Date.now() + etaSeconds * 1000); const etaDate = new Date(Date.now() + etaSeconds * 1000);