mirror of
https://github.com/lumapu/ahoy.git
synced 2025-08-01 23:48:24 +02:00
Add space between values and units.
This commit is contained in:
parent
6fb0535939
commit
4ae4c16766
1 changed files with 6 additions and 6 deletions
|
@ -106,7 +106,7 @@
|
|||
if(65535 != obj.power_limit_read) {
|
||||
pwrLimit = obj.power_limit_read + " %";
|
||||
if(0 != obj.max_pwr)
|
||||
pwrLimit += ", " + Math.round(obj.max_pwr * obj.power_limit_read / 100) + "W";
|
||||
pwrLimit += ", " + Math.round(obj.max_pwr * obj.power_limit_read / 100) + " W";
|
||||
}
|
||||
return ml("div", {class: "row mt-2"},
|
||||
ml("div", {class: "col"}, [
|
||||
|
@ -192,9 +192,9 @@
|
|||
|
||||
if(obj.rssi > -127) {
|
||||
if(obj.generation < 2)
|
||||
ageInfo += " (RSSI: " + ((obj.rssi == -64) ? ">=" : "<") + " -64dBm)";
|
||||
ageInfo += " (RSSI: " + ((obj.rssi == -64) ? ">=" : "<") + " -64 dBm)";
|
||||
else
|
||||
ageInfo += " (RSSI: " + obj.rssi + "dBm)";
|
||||
ageInfo += " (RSSI: " + obj.rssi + " dBm)";
|
||||
}
|
||||
|
||||
return ml("div", {class: "mb-5"}, [
|
||||
|
@ -383,9 +383,9 @@
|
|||
var html = ml("table", {class: "table"}, [
|
||||
ml("tbody", {}, [
|
||||
tr2(["TX count", obj.tx_cnt, ""]),
|
||||
tr2(["RX success", obj.rx_success, String(Math.round(obj.rx_success / obj.tx_cnt * 10000) / 100) + "%"]),
|
||||
tr2(["RX fail", obj.rx_fail, String(Math.round(obj.rx_fail / obj.tx_cnt * 10000) / 100) + "%"]),
|
||||
tr2(["RX no answer", obj.rx_fail_answer, String(Math.round(obj.rx_fail_answer / obj.tx_cnt * 10000) / 100) + "%"]),
|
||||
tr2(["RX success", obj.rx_success, String(Math.round(obj.rx_success / obj.tx_cnt * 10000) / 100) + " %"]),
|
||||
tr2(["RX fail", obj.rx_fail, String(Math.round(obj.rx_fail / obj.tx_cnt * 10000) / 100) + " %"]),
|
||||
tr2(["RX no answer", obj.rx_fail_answer, String(Math.round(obj.rx_fail_answer / obj.tx_cnt * 10000) / 100) + " %"]),
|
||||
tr2(["RX fragments", obj.frame_cnt, ""]),
|
||||
tr2(["TX retransmits", obj.retransmits, ""])
|
||||
])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue