잔여 시간 계산에 장기 학습 프로파일 반영
This commit is contained in:
+13
-1
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user