applications/luci-olsr: sync colors with map, add legend
[project/luci.git] / applications / luci-olsr / luasrc / tools / olsr.lua
index 45501020a3fddbaf3c57f6d8d031fb7dc450dd9a..425d09a31e13aa7712420d2cc20c7fe3d25ab859 100644 (file)
@@ -16,11 +16,11 @@ function etx_color(etx)
        local color = "#bb3333"
        if etx == 0 then
                color = "#bb3333"
-       elseif etx < 4 then
+       elseif etx < 2 then
                color = "#00cc00"
-       elseif etx < 10 then
+       elseif etx < 4 then
                color = "#ffcb05"
-       elseif etx < 100 then
+       elseif etx < 10 then
                color = "#ff6600"
        end
        return color