/[pxelator]/lib/PXElator/httpd.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 /lib/PXElator/httpd.pm

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

revision 89 by dpavlin, Fri Jul 31 18:26:28 2009 UTC revision 91 by dpavlin, Fri Jul 31 18:48:29 2009 UTC
# Line 180  sub get_request { Line 180  sub get_request {
180                          push @rows, ( $name => $html );                          push @rows, ( $name => $html );
181                  }                  }
182    
183                    my $below_table = '';
184    
185                  warn 'static_pids: ', dump( $static_pids ) if $debug;                  warn 'static_pids: ', dump( $static_pids ) if $debug;
186                  foreach my $pid ( keys %$static_pids ) {                  foreach my $pid ( keys %$static_pids ) {
187                          my $path = $static_pids->{$pid};                          my $path = $static_pids->{$pid};
188                          if ( -d "/proc/$pid" ) {                          if ( -d "/proc/$pid" ) {
189                                  push @rows, ( $path => qq|<a href=/kill/static/$pid>$pid</a>| );                                  push @rows, ( $path => qq|<a href=/kill/static/$pid>$pid</a>| );
190                            } elsif ( $param->{clean_completed_downloads} ) {
191                                    delete $static_pids->{$pid}
192                          } else {                          } else {
193                                  push @rows, ( $path => "$pid competed" );                                  push @rows, ( $path => "$pid competed" );
194                                    $below_table = qq|<a href="/?clean_completed_downloads=1">clean completed downloads</a>|;
195                          }                          }
196                  }                  }
197    
198                  print $client $ok                  print $client $ok
199                          , html::table( 2, @rows )                          , html::table( 2, @rows )
200                            , $below_table
201                          , html::tabs( log::mac_changes )                          , html::tabs( log::mac_changes )
202                          , $debug_proc                          , $debug_proc
203                          ;                          ;

Legend:
Removed from v.89  
changed lines
  Added in v.91

  ViewVC Help
Powered by ViewVC 1.1.26