/[Sack]/trunk/lib/Sack/Server.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/lib/Sack/Server.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 248 by dpavlin, Thu Nov 26 22:18:19 2009 UTC revision 249 by dpavlin, Thu Nov 26 22:23:52 2009 UTC
# Line 244  while (1) { Line 244  while (1) {
244                                          qq|<span class="$class">$_</span>|;                                          qq|<span class="$class">$_</span>|;
245                                  } sort keys %{ $info->{node} } );                                  } sort keys %{ $info->{node} } );
246    
247                                  print $send qq|<h1>Data</h1><ul>|;                                  print $send qq|<h1>Shards</h1><ul>|;
248                                  foreach my $path ( glob '/tmp/sack/*' ) {                                  foreach my $path ( glob '/tmp/sack/*' ) {
249                                          print $send qq|<li><a href="$path">$path</a><div class="shards">|;                                          print $send qq|<li><a href="$path">$path</a><div class="shards">|;
250                                          foreach my $s ( sort grep { m/$path/ } keys %{ $info->{shard} } ) {                                          foreach my $s ( sort grep { m/$path/ } keys %{ $info->{shard} } ) {
251                                                  my $i = $info->{shard}->{$s};                                                  my $i = $info->{shard}->{$s};
252                                                  print $send qq|<span class=$i>$i</span> |;                                                  print $send qq|<span class="$i" title="$s">$i</span> |;
253                                          }                                          }
254                                          print $send qq|</div>|;                                          print $send qq|</div>|;
255                                  }                                  }

Legend:
Removed from v.248  
changed lines
  Added in v.249

  ViewVC Help
Powered by ViewVC 1.1.26