浏览代码

feat: show queue stats in health tile

master
Jan Svabenik 5 小时前
父节点
当前提交
e3bdd03428
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. +5
    -1
      web/app.js

+ 5
- 1
web/app.js 查看文件

@@ -859,7 +859,11 @@ function updateHeroMetrics() {
const reasonCounts = decisionSummary.reasons || {};
const topReason = Object.entries(reasonCounts).sort((a, b) => b[1] - a[1])[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) {
const stats = refinementInfo.window_stats || null;


正在加载...
取消
保存