X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=web%2Fhtdocs%2Fdetails%2Fstats.mc;h=c01c302389693de990641d595e6f3e070083f5c3;hb=ad1da2e933db65854b8bc177aaf053a31c4004b3;hp=e5db7ebbd138243dfb4349fa8a83312bb77a2273;hpb=3f62972e9c6f2c307e1a32c18de36860c47cffa2;p=irspy-moved-to-github.git diff --git a/web/htdocs/details/stats.mc b/web/htdocs/details/stats.mc index e5db7eb..c01c302 100644 --- a/web/htdocs/details/stats.mc +++ b/web/htdocs/details/stats.mc @@ -1,4 +1,4 @@ -%# $Id: stats.mc,v 1.7 2007-10-31 16:42:26 mike Exp $ +%# $Id: stats.mc,v 1.9 2007-11-02 12:49:28 mike Exp $ <%doc> Here are the headings in the Z-Spy version: The ten most commonly supported Bib-1 Use attributes @@ -28,7 +28,7 @@ my $stats = $m->cache->get($key); if (!defined $stats || $reload) { $from_cache = 0; $stats = new ZOOM::IRSpy::Stats("localhost:8018/IR-Explain---1", $query); - $m->cache->set($key, $stats, "10 minutes"); + $m->cache->set($key, $stats, "1 day"); }

Statistics for <% xml_encode($stats->{host}) %>

@@ -57,7 +57,7 @@ if (!defined $stats || $reload) { headings => [ "Top Domain"] &> <& table, stats => $stats, data => "implementation", title => "Implementation", - headings => [ "Name" ] &> + headings => [ "Name" ], maxrows => 20 &> %# %# <%def table> @@ -65,6 +65,7 @@ if (!defined $stats || $reload) { $stats $data $title +$maxrows => 10 @headings $col3 => undef @@ -82,13 +83,13 @@ $col3 => undef my $hr; $hr = $stats->{$data}; my @sorted = sort { $hr->{$b} <=> $hr->{$a} || $a <=> $b } keys %$hr; -my $n = @sorted; $n = 10 if @sorted > 10; +my $n = @sorted; $n = $maxrows if @sorted > 10; foreach my $i (1..$n) { my $key = $sorted[$i-1]; <% $i %> - <% xml_encode($key, "HUH?") %> + <% xml_encode(substr($key, 0, 54), "HUH?") %> % if (defined $col3) { <% xml_encode(&$col3($key), "HUH2?") %> % }