add evictions-happened test back to am script
not as easy to do the "global pool filled once" check, since the underlying
memcached can be restarted but the script will just reconnect. simplest thing
to do is to keep the evictions check, which stops the algorithm on a sudden
reset.
@@ -295,6 +295,7 @@ while True:
(diffs, totals) = diff_stats(stats_pre, stats_post)
#if args.verbose:
# show_detail(diffs, totals)
+ if int(stats['evictions']) > 0:
if (last_memfree_check < time() - 60) and totals.get('total_pages'):
memfree = memfree_check(s, diffs, totals)
last_memfree_check = time()
