summaryrefslogtreecommitdiff
path: root/t/lib
diff options
context:
space:
mode:
authorDustin Sallings <dustin@spy.net>2009-02-12 18:36:01 -0800
committerDustin Sallings <dustin@spy.net>2009-02-12 18:36:01 -0800
commit74e80c7b2f2e43f9c2d174fe54ae792d0e4a6fb5 (patch)
tree9df58903dbc9f9874c2c5e48bb5858c2f0a34d9d /t/lib
parentbd2f3ab2a719185c9cfaa5106f8a1be2605f4a4c (diff)
downloadmemcached-74e80c7b2f2e43f9c2d174fe54ae792d0e4a6fb5.tar.gz
Test cachedump on text protocol.
Diffstat (limited to 't/lib')
-rw-r--r--t/lib/MemcachedTest.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/lib/MemcachedTest.pm b/t/lib/MemcachedTest.pm
index fc65892..c95a415 100644
--- a/t/lib/MemcachedTest.pm
+++ b/t/lib/MemcachedTest.pm
@@ -26,9 +26,9 @@ sub mem_stats {
my $stats = {};
while (<$sock>) {
last if /^(\.|END)/;
- /^STAT (\S+) (\d+)/;
+ /^(STAT|ITEM) (\S+)\s+([^\r\n]+)/;
#print " slabs: $_";
- $stats->{$1} = $2;
+ $stats->{$2} = $3;
}
return $stats;
}