Commit b0da37d0 authored by Eric's avatar Eric
Browse files

Moved the "red, yellow, green" scale up a bit, center is now 7, was 5.

parent e958150d
...@@ -282,7 +282,7 @@ function load_LinkList($NodeList, $TopoList) ...@@ -282,7 +282,7 @@ function load_LinkList($NodeList, $TopoList)
$map_LayerAssigned = 'rfLinks'; $map_LayerAssigned = 'rfLinks';
} }
//links of greater than 10.000 ETX, but not "INFINITE" (these links are always red) //links of greater than 10.000 ETX, but not "INFINITE" (these links are always red)
if ($value['cost'] > 10.000 && $value['cost'] != 99.99) if ($value['cost'] > 14.000 && $value['cost'] != 99.99)
{ {
$display_color = $MESH_SETTINGS['Link_BAD']; $display_color = $MESH_SETTINGS['Link_BAD'];
$moreThanTen = 1; $moreThanTen = 1;
...@@ -291,13 +291,13 @@ function load_LinkList($NodeList, $TopoList) ...@@ -291,13 +291,13 @@ function load_LinkList($NodeList, $TopoList)
} }
//now for the more normal links //now for the more normal links
//less than ETX 5.0 links //less than ETX 5.0 links
if ($value['cost'] < 5 && !($dtd) && !($tunnel)) if ($value['cost'] < 7 && !($dtd) && !($tunnel))
{ {
$display_color = sprintf("#%02XFF00", ($value['cost'] - 1) * (255 / (5 - 1))); $display_color = sprintf("#%02XFF00", ($value['cost'] - 1) * (255 / (5 - 1)));
$map_LayerAssigned = 'rfLinks'; $map_LayerAssigned = 'rfLinks';
} }
//more than ETX 5.0 links //more than ETX 5.0 links
if ($value['cost'] > 5 && !($moreThanTen) && !($infinite)) if ($value['cost'] > 7 && !($moreThanTen) && !($infinite))
{ {
$display_color = sprintf("#FF%02X00", ($value['cost'] - 1) * (255 / (5 - 1)) - $display_color = sprintf("#FF%02X00", ($value['cost'] - 1) * (255 / (5 - 1)) -
255); 255);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment