diff --git a/static/js/dashboard.js b/static/js/dashboard.js index 3acb470..fac7099 100644 --- a/static/js/dashboard.js +++ b/static/js/dashboard.js @@ -100,27 +100,7 @@ class GPONDashboard { this.setElementText('pon-mode', data.pon_mode); this.setElementText('lan-mode', data.lan_mode); this.setElementText('olt-vendor-info', data.olt_vendor_info); - this.setElementText('olt-version-info', data.olt_version_info); - - const connTimeElem = document.getElementById('connection-time'); - if (connTimeElem) { - if (data.connection_time) { - connTimeElem.textContent = data.connection_time; - } else if (data.uptime && data.uptime > 0) { - const seconds = parseInt(data.uptime); - const days = Math.floor(seconds / 86400); - const hours = Math.floor((seconds % 86400) / 3600); - const minutes = Math.floor((seconds % 3600) / 60); - let connTime = ''; - if (days > 0) connTime += days + 'd '; - if (hours > 0 || days > 0) connTime += hours + 'h '; - connTime += minutes + 'm'; - connTimeElem.textContent = connTime.trim(); - } else { - connTimeElem.textContent = '--'; - } - } - + this.setElementText('olt-version-info', data.olt_version_info); this.setElementText('rx-packets', (data.rx_packets || 0).toLocaleString('en-US')); this.setElementText('tx-packets', (data.tx_packets || 0).toLocaleString('en-US')); this.setElementText('fec-corrected', (data.fec_corrected || 0).toLocaleString('en-US')); diff --git a/templates/index.html b/templates/index.html index 5b139e2..df24f5e 100644 --- a/templates/index.html +++ b/templates/index.html @@ -158,7 +158,6 @@ OLT Version:-- OLT Mode:-- OMCC Version:-- - Connection Time:--