diff options
author | dormando <dormando@rydia.net> | 2017-11-27 16:30:10 -0800 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2017-11-28 14:18:05 -0800 |
commit | 9716994daec8b30844c5c9bb8ee69f2dba031929 (patch) | |
tree | 3049fbf3c616e8c77bdab876b9c492fa3985910a | |
parent | 7a9756522c9e5c4ebd40d46681f1552f9d85a069 (diff) | |
download | memcached-9716994daec8b30844c5c9bb8ee69f2dba031929.tar.gz |
extstore: fix in external automove script
python types still escape me.
-rwxr-xr-x | scripts/memcached-automove-extstore | 2 |
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) |