diff --git a/files/www/cgi-bin/mesh b/files/www/cgi-bin/mesh index 0d820ec9..c8e4ff97 100755 --- a/files/www/cgi-bin/mesh +++ b/files/www/cgi-bin/mesh @@ -72,8 +72,9 @@ foreach(`echo /all | nc 127.0.0.1 2006 2>$tmperr`) if($table eq "Links") { - ($junk, $ip, $junk, $lq) = split /\s+/, $_; - $links{$ip} = $lq; + ($junk, $ip, $junk, $lq, $nlq) = split /\s+/, $_; + $links{$ip}{lq} = $lq; + $links{$ip}{nlq} = $nlq; } elsif($table eq "Neighbors") { @@ -384,8 +385,8 @@ print " \n"; # show current neighbors -print "\n"; -print "\n"; +print "\n"; +print "\n"; if(keys %links) { @@ -409,7 +410,7 @@ if(keys %links) $rows{$host} .= "   (mid$midnum)"; } - $rows{$host} .= sprintf "\n"; @@ -434,7 +435,7 @@ else print "\n"; print "\n"; -print "\n"; +print "\n"; %rows = (); ($uptime) = `cat /proc/uptime` =~ /^(\d+)/;
Current Neighbors  LQ  Services

Current Neighbors  LQNLQ  Services

%.0f%%\n", 100*$links{$ip}; + $rows{$host} .= sprintf ("%.0f%%%.0f%%\n", 100*$links{$ip}{lq}, 100*$links{$ip}{nlq}); foreach(sort keys %{$services{$host}}) { $rows{$host} .= "" . $services{$host}{$_} . "
\n" } $rows{$host} .= "
 
Previous NeighborsWhen