diff options
author | Patrick Grimm <patrick@lunatiki.de> | 2013-07-10 18:11:09 +0000 |
---|---|---|
committer | Patrick Grimm <patrick@lunatiki.de> | 2013-07-10 18:11:09 +0000 |
commit | 56b48f76a72da6ac6d255a5298adffe760ba93f0 (patch) | |
tree | 00d1503b3d19a2251601a22cd2434612364b3837 /applications/luci-olsr/luasrc/view/status-olsr/neighbors.htm | |
parent | 25c4b954a6037811ecafcf8189ab79b0f74d0aed (diff) |
luci-olsr: fix snr calc olsr neighbours and unit in Legend
Diffstat (limited to 'applications/luci-olsr/luasrc/view/status-olsr/neighbors.htm')
-rw-r--r-- | applications/luci-olsr/luasrc/view/status-olsr/neighbors.htm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/applications/luci-olsr/luasrc/view/status-olsr/neighbors.htm b/applications/luci-olsr/luasrc/view/status-olsr/neighbors.htm index f3b374536e..176457d71c 100644 --- a/applications/luci-olsr/luasrc/view/status-olsr/neighbors.htm +++ b/applications/luci-olsr/luasrc/view/status-olsr/neighbors.htm @@ -40,9 +40,9 @@ if luci.http.formvalue("status") == "1" then lq = string.format("%.3f", link.linkQuality), nlq = string.format("%.3f",link.neighborLinkQuality), cost = string.format("%.3f", link.linkCost), - snr = string.format("%.3f", link.snr), - signal = string.format("%.3f", link.signal), - noise = string.format("%.3f", link.noise), + snr = link.snr, + signal = link.signal, + noise = link.noise, color = color, snr_color = snr_color, dfgcolor = defaultgw_color, @@ -161,7 +161,7 @@ end <td class="cbi-section-table-titles" style="background-color:<%=defaultgw_color%>"><%=string.format("%.3f", link.linkQuality)%></td> <td class="cbi-section-table-titles" style="background-color:<%=defaultgw_color%>"><%=string.format("%.3f", link.neighborLinkQuality)%></td> <td class="cbi-section-table-titles" style="background-color:<%=color%>"><%=string.format("%.3f", link.linkCost)%></td> - <td class="cbi-section-table-titles" style="background-color:<%=snr_color%>" title="Signal: <%=string.format("%.3f", link.signal)%> Noise: <%=string.format("%.3f", link.noise)%>"><%=string.format("%.3f", link.snr)%></td> + <td class="cbi-section-table-titles" style="background-color:<%=snr_color%>" title="Signal: <%=link.signal%> Noise: <%=link.noise%>"><%=link.snr%></td> </tr> <% i = ((i % 2) + 1) |