diagnostico: add uptime

Signed-off-by: Rodrigo Martins <rodrigo@martinsevieira.adv.br>
This commit is contained in:
Rodrigo Martins committed 2026-04-25 20:57:24 -03:00
1 parent 6c048a0045
commit 1dea1f8c6f
2 files changed
+32

No files matched your search

+4
View File
@@ -1215,6 +1215,9 @@ Digite /help para ver todos os comandos disponíveis!
msg += ` 📍 Slot/PON: ${onuResult.slot || '?'}/${onuResult.pon || '?'}\n`;
}
msg += ` 🔌 Estado: ${onuResult.online ? '🟢 Online' : '🔴 Offline'}\n`;
if (onuResult.uptime) {
msg += ` ⏱️ Uptime: ${onuResult.uptime}\n`;
}
msg += ` ${rxEmoji} Rx Power: *${rxLabel}*\n`;
if (onuResult.portaEthernet) {
@@ -1423,6 +1426,7 @@ Digite /help para ver todos os comandos disponíveis!
pon: resultado.pon,
onuId: resultado.onuId,
online: resultado.online,
uptime: resultado.uptime || null,
rxPower,
txPower: resultado.txPower !== 'N/A' ? resultado.txPower : null,
portaEthernet: portaEthernetStr