WiFi 보정값 표시 방식 정리

This commit is contained in:
seo
2026-06-26 02:38:58 +09:00
parent 4f102efc4b
commit 68079e7ff4
4 changed files with 9 additions and 16 deletions
+2 -9
View File
@@ -828,14 +828,10 @@
function wifiValueTitle(row, key) {
const source = row?.[`${key}_source`];
if (!source || source === 'iw' || source === 'lease') return '';
if (source.startsWith('estimated_')) return '';
const labels = {
alias: 'DB 저장 이름',
generated: 'MAC 기반 임시 이름',
estimated_from_rate: '속도 기반 추정',
estimated_from_signal: '신호 기반 추정',
estimated_from_rx: '수신 속도 기반 추정',
estimated_from_tx: '송신 속도 기반 추정',
estimated_default: '대역 기본 추정',
};
return labels[source] || source;
}
@@ -846,10 +842,7 @@
}
function wifiMetricCell(row, key) {
const title = wifiValueTitle(row, key);
const className = title ? ' class="wifi-estimated"' : '';
const titleAttr = title ? ` title="${attr(title)}"` : '';
return `<td${className}${titleAttr}>${escapeHtml(row[key] || '-')}</td>`;
return `<td>${escapeHtml(row[key] || '-')}</td>`;
}
async function editWifiHostname(mac, currentName) {