--- lib/PXElator/httpd.pm 2009/07/30 22:44:55 70 +++ lib/PXElator/httpd.pm 2009/07/30 22:55:08 71 @@ -143,15 +143,24 @@ 'debug', qq|$debug|, ); + my $debug_proc; + warn 'pids: ', dump( $pids ); foreach my $name ( keys %$pids ) { my $pid = $pids->{$name} || next; - my $proc = "/proc/$pid/status"; my $html = qq|$pid|; - $html .= qq|
|
-					.  ( $debug && -e $proc ? read_file($proc) : '' )
-					.  qq|
| if $debug; + + if ( $debug ) { + $html .= qq| ?|; + + my $proc = "/proc/$pid/status"; + $debug_proc + .= qq|$proc
|
+					.  read_file($proc)
+					.  qq|
| + if -e $proc; + } push @rows, ( $name => $html ); } @@ -166,7 +175,7 @@ } } - print $client $ok, html::table( 2, @rows ); + print $client $ok, html::table( 2, @rows ), $debug_proc; } elsif ( $path =~ m{^/our/(\w+)/(\S+)} ) { eval 'our $' . $1 . ' = ' . $2;