X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=web%2Fhtdocs%2Fdetails%2Ffound.mc;h=9e858f862475897d1dd6bf2d817ec84480b0aa87;hb=HEAD;hp=231f4d10423049fcfb6d41f38f23da9f8582a46f;hpb=5cb7ba44fc75fa61c3989e72d2831564a843283d;p=irspy-moved-to-github.git diff --git a/web/htdocs/details/found.mc b/web/htdocs/details/found.mc index 231f4d1..9e858f8 100644 --- a/web/htdocs/details/found.mc +++ b/web/htdocs/details/found.mc @@ -1,4 +1,3 @@ -%# $Id: found.mc,v 1.33 2009-04-15 18:16:46 wosch Exp $ <%once> sub print_navlink { my($params, $cond, $caption, $skip) = @_; @@ -19,22 +18,6 @@ sub navlink { return $url; } -# Identical to the same-named function in full.mc -# So maybe this should go into IRSpy::Utils.pm? -# Name changed (append 2) to prevent inadvertent clashes in Mason namespace -# -sub calc_reliability2 { - my($xc) = @_; - - my @allpings = $xc->findnodes("i:status/i:probe"); - my $nall = @allpings; - return "[untested]" if $nall == 0; - my @okpings = $xc->findnodes('i:status/i:probe[@ok = "1"]'); - my $nok = @okpings; - return "$nok/$nall = " . int(100*$nok/$nall) . "%"; -} - - # Just make this once; forge the connection on first use our $conn = undef; %once> @@ -70,8 +53,10 @@ if ($sort) { my $tried_to_open = 0; if (!defined $conn) { OPEN: - $conn = new ZOOM::Connection("localhost:8018/IR-Explain---1"); + my $db = ZOOM::IRSpy::connect_to_registry(); + $conn = new ZOOM::Connection($db); $conn->option(elementSetName => "zeerex"); + $conn->option(count => 20); } my $rs; @@ -112,7 +97,7 @@ print_navlink(\%params, $last < $n, "Next", $skip+$count); % }
% if ($n > 0 && $first <= $n) { -# | Title | @@ -125,11 +110,12 @@ print_navlink(\%params, $last < $n, "Next", $skip+$count);|||||
---|---|---|---|---|---|---|
<% $i %> | -"><% xml_encode($title) %> | <% xml_encode($reliability, "", { nbsp => 1 }) %> | <% xml_encode($host, "") %> | <% xml_encode($port, "") %> | <% xml_encode($db, "") %> | - " title="Test this target">Test " title="Edit this target's record">Edit " title="Raw XML record">XML |