From 8c1c18eda8f56a23a88ddfe7e9cc3d58e461af22 Mon Sep 17 00:00:00 2001 From: dormando Date: Tue, 3 Jan 2012 18:27:52 -0800 Subject: 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. --- scripts/mc_slab_mover | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') 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}, -- cgit v1.2.1