summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authordormando <dormando@rydia.net>2012-01-03 18:27:52 -0800
committerdormando <dormando@rydia.net>2012-01-03 19:04:04 -0800
commit8c1c18eda8f56a23a88ddfe7e9cc3d58e461af22 (patch)
tree054470a656e575460f41424f76307cbd8bcbedbb /scripts
parent99fc043af90170757a34802bd96111999013d0bc (diff)
downloadmemcached-8c1c18eda8f56a23a88ddfe7e9cc3d58e461af22.tar.gz
no same-class reassignment, better errors
Add human parseable strings to the errors for slabs ressign. Also prevent reassigning memory to the same source and destination.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/mc_slab_mover2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/mc_slab_mover b/scripts/mc_slab_mover
index d7bd5e4..ac984d7 100755
--- a/scripts/mc_slab_mover
+++ b/scripts/mc_slab_mover
@@ -134,7 +134,7 @@ sub run {
printf " %02s: %-8s (pct ) %-10s (pct ) %-6s (pct ) get_hits (pct ) cmd_set (pct )\n",
'sb', 'evicted', 'items', 'pages';
for my $slab (@$sorted) {
- printf " %02d: %-8d (%.2f%%) %-10s (%.4f%%) %-6d (%.2f%%) %-8d (%.3f%%) %-7d (%.2f%%)\n",
+ printf " %02d: %-8d (%.2f%%) %-10s (%.4f%%) %-6d (%.2f%%) %-8d (%.3f%%) %-7d (%.2f%%)\n",
$slab->{slab}, $slab->{evicted_d},
$pct->($slab->{evicted_d}, $totals->{evicted_d}),
$slab->{number},