added missing NR5G-NSA check on LTE only statement

This commit is contained in:
Russel Yasol
2024-05-09 07:41:51 +08:00
parent e07d5b8bc4
commit 387f86ed31

View File

@@ -780,7 +780,7 @@
this.signalPercentage
);
} else {
if (this.network_mode.match(/LTE/) != null) {
if (this.network_mode.match(/LTE/) != null && this.network_mode.match(/NR5G-NSA/) == null) {
let lte_bw_ul = lines[27].split(",")[10].replace(/"/g, "");
let lte_bw_dl = lines[27].split(",")[11].replace(/"/g, "");
@@ -909,7 +909,7 @@
// Get the RSRQ
this.rsrqLTE = lines[28].split(",")[12].replace(/"/g, "");
rsrq = parseInt(this.rsrqLTE);
let rsrq = parseInt(this.rsrqLTE);
// Calculate the RSRQ percentage
this.rsrqLTEPercentage = this.calculateRSRQPercentage(rsrq);
@@ -958,7 +958,7 @@
// Get the RSRQ NR
this.rsrqNR = lines[29].split(",")[6].replace(/"/g, "");
let rsrq = parseInt(this.rsrqNR);
rsrq = parseInt(this.rsrqNR);
// Calculate the RSRQ percentage
this.rsrqNRPercentage = this.calculateRSRQPercentage(rsrq);