summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authordormando <dormando@rydia.net>2017-08-24 00:27:54 -0700
committerdormando <dormando@rydia.net>2017-08-24 00:27:54 -0700
commit67287ca792606093bdf53e176dfed3b9d1e92feb (patch)
tree00f4800a546349a386390a9e7a49db95907bcbf7 /scripts
parentb2ea9201735f5dc17fb324dbe988ea2b808890a1 (diff)
downloadmemcached-67287ca792606093bdf53e176dfed3b9d1e92feb.tar.gz
memcached-tool: fix slab full? column
free_chunks_end stopped working years ago when the page mover was being optimzed. check now looks for used_chunks == total_chunks.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/memcached-tool2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/memcached-tool b/scripts/memcached-tool
index 82c6c3c..79f3770 100755
--- a/scripts/memcached-tool
+++ b/scripts/memcached-tool
@@ -214,7 +214,7 @@ foreach my $n (1..$max) {
my $size = $it->{chunk_size} < 1024 ?
"$it->{chunk_size}B" :
sprintf("%.1fK", $it->{chunk_size} / 1024.0);
- my $full = $it->{free_chunks_end} == 0 ? "yes" : " no";
+ my $full = $it->{used_chunks} == $it->{total_chunks} ? "yes" : " no";
printf("%3d %8s %9ds %7d %7d %7s %8d %8d %4d\n",
$n, $size, $it->{age}, $it->{total_pages},
$it->{number}, $full, $it->{evicted},