Committer: ailyin
use the stats method of the PP module because the XS one doesn't provide itU trunk/htdocs/admin/memcache.bml
Modified: trunk/htdocs/admin/memcache.bml =================================================================== --- trunk/htdocs/admin/memcache.bml 2010-12-08 08:44:09 UTC (rev 17880) +++ trunk/htdocs/admin/memcache.bml 2010-12-08 08:54:10 UTC (rev 17881) @@ -143,7 +143,7 @@ my ( $tot_hits, $tot_misses ) = qw(0 0); foreach my $host ( sort keys %$connections ) { - my $conn = $connections->{$host}; + my $conn = LJ::MemCache::PP->new({ 'servers' => [ $host ] }); my $t1 = Time::HiRes::time(); my $stats = $conn->stats->{'hosts'}->{$host}->{'misc'}; @@ -221,7 +221,7 @@ ); } elsif ( $mode eq 'host' ) { my $host = $GET{'host'}; - my $conn = $connections->{$host}; + my $conn = LJ::MemCache::PP->new({ 'servers' => [ $host ] }); die "invalid server $host" unless $host and $conn;