diff options
author | dormando <dormando@rydia.net> | 2017-08-24 00:27:54 -0700 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2017-08-24 00:27:54 -0700 |
commit | 67287ca792606093bdf53e176dfed3b9d1e92feb (patch) | |
tree | 00f4800a546349a386390a9e7a49db95907bcbf7 /scripts | |
parent | b2ea9201735f5dc17fb324dbe988ea2b808890a1 (diff) | |
download | memcached-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-x | scripts/memcached-tool | 2 |
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}, |