잔여 시간 계산에 장기 학습 프로파일 반영

This commit is contained in:
seo
2026-06-26 02:11:34 +09:00
parent b6cdb0f162
commit 52fa1408bc
3 changed files with 228 additions and 13 deletions
+13 -1
View File
@@ -699,8 +699,20 @@
} else if (remaining.avg_watts !== undefined && remaining.avg_watts !== null) {
lines.push(`평균 CPU 전력: ${Number(remaining.avg_watts).toFixed(3)}W`);
}
if (Array.isArray(remaining.sources) && remaining.sources.length > 0) {
const labels = {
recent_window: '최근 추세',
learned_profile: '장기 학습',
};
lines.push(`계산 출처: ${remaining.sources.map(source => labels[source] || source).join(', ')}`);
}
if (Array.isArray(remaining.windows) && remaining.windows.length > 0) {
lines.push(`반영 구간: ${remaining.windows.map(row => `${row.minutes}`).join(', ')}`);
lines.push(`반영 구간: ${remaining.windows.map(row => {
if (row.source === 'learned_profile') {
return `장기 ${row.intervals || 0}구간`;
}
return `${row.minutes}`;
}).join(', ')}`);
}
return lines.join('\n');