Explorar el Código

feat: show queue stats in health tile

master
Jan Svabenik hace 5 horas
padre
commit
e3bdd03428
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  1. +5
    -1
      web/app.js

+ 5
- 1
web/app.js Ver fichero

@@ -859,7 +859,11 @@ function updateHeroMetrics() {
const reasonCounts = decisionSummary.reasons || {}; const reasonCounts = decisionSummary.reasons || {};
const topReason = Object.entries(reasonCounts).sort((a, b) => b[1] - a[1])[0]; const topReason = Object.entries(reasonCounts).sort((a, b) => b[1] - a[1])[0];
const reasonText = topReason ? `· ${topReason[0]}` : ''; const reasonText = topReason ? `· ${topReason[0]}` : '';
healthRefinePlan.textContent = `${plan.selected?.length || 0}/${plan.budget || 0} · drop ${plan.dropped_by_snr || 0}/${plan.dropped_by_budget || 0} · rec ${recOn} dec ${decOn} ${reasonText}`;
const queueStats = refinementInfo.queue_stats || {};
const queueText = (queueStats.record_queued || queueStats.decode_queued)
? `· q ${queueStats.record_queued || 0}/${queueStats.decode_queued || 0}`
: '';
healthRefinePlan.textContent = `${plan.selected?.length || 0}/${plan.budget || 0} · drop ${plan.dropped_by_snr || 0}/${plan.dropped_by_budget || 0} · rec ${recOn} dec ${decOn} ${queueText} ${reasonText}`;
} }
if (healthRefineWindows) { if (healthRefineWindows) {
const stats = refinementInfo.window_stats || null; const stats = refinementInfo.window_stats || null;


Cargando…
Cancelar
Guardar