summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authordormando <dormando@rydia.net>2017-11-27 16:30:10 -0800
committerdormando <dormando@rydia.net>2017-11-28 14:18:05 -0800
commit9716994daec8b30844c5c9bb8ee69f2dba031929 (patch)
tree3049fbf3c616e8c77bdab876b9c492fa3985910a /scripts
parent7a9756522c9e5c4ebd40d46681f1552f9d85a069 (diff)
downloadmemcached-9716994daec8b30844c5c9bb8ee69f2dba031929.tar.gz
extstore: fix in external automove script
python types still escape me.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/memcached-automove-extstore2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/memcached-automove-extstore b/scripts/memcached-automove-extstore
index 4578d17..efe8c1f 100755
--- a/scripts/memcached-automove-extstore
+++ b/scripts/memcached-automove-extstore
@@ -249,7 +249,7 @@ while True:
#if args.verbose:
# show_detail(diffs, totals)
decision = (-1, -1)
- if stats['evictions'] != 0:
+ if int(stats['evictions']) > 0:
decision = determine_move(history, stats, diffs, totals)
if int(decision[0]) > 0 and decision[1] != -1:
print("moving page from, to:", decision)