Blocked cache rmem checks in windows until we have figured out some other way to check this.

This commit is contained in:
Griatch 2014-09-06 08:46:54 +02:00
parent aba6f947fa
commit 46781d3ee1
2 changed files with 7 additions and 0 deletions

View file

@ -418,6 +418,10 @@ def conditional_flush(max_rmem, force=False):
"once in %s min interval. Check memory usage." % (AUTO_FLUSH_MIN_INTERVAL/60.0))
return
if os.name == "nt":
# we can't look for mem info in Windows at the moment
return
# check actual memory usage
Ncache_max = mem2cachesize(max_rmem)
Ncache, _ = cache_size()

View file

@ -274,6 +274,9 @@ def datetime_format(dtobj):
def host_os_is(osname):
"""
Check to see if the host OS matches the query.
Common osnames are
posix
nt
"""
if os.name == osname:
return True