diff options
author | Patrick Grimm <patrick@lunatiki.de> | 2013-07-10 17:52:38 +0000 |
---|---|---|
committer | Patrick Grimm <patrick@lunatiki.de> | 2013-07-10 17:52:38 +0000 |
commit | 25c4b954a6037811ecafcf8189ab79b0f74d0aed (patch) | |
tree | 07a0561ba11d7f7876ca59699a8e545c800ff4de /applications/luci-olsr/luasrc/controller | |
parent | 46c61acd06b3c54f3d98fa809e4b9450bae04975 (diff) |
luci-olsr: add snr for olsr neighbours and update Legend
Diffstat (limited to 'applications/luci-olsr/luasrc/controller')
-rw-r--r-- | applications/luci-olsr/luasrc/controller/olsr.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/applications/luci-olsr/luasrc/controller/olsr.lua b/applications/luci-olsr/luasrc/controller/olsr.lua index bef7e52eb1..daedcf54d9 100644 --- a/applications/luci-olsr/luasrc/controller/olsr.lua +++ b/applications/luci-olsr/luasrc/controller/olsr.lua @@ -227,9 +227,9 @@ function action_neigh(json) for assocmac, assot in pairs(val.list) do assocmac = string.lower(assocmac or "") if rmac == assocmac then - signal = tonumber(assot.signal) - noise = tonumber(assot.noise) - snr = signal/noise + signal = tonumber(assot.signal)*-1 + noise = tonumber(assot.noise)*-1 + snr = noise - signal end end end |