From: Jeremy Allison Date: Fri, 8 Apr 2005 17:04:59 +0000 (+0000) Subject: r6249: Get the comparison the right way around... X-Git-Tag: samba-misc-tags/initial-v3-0-unstable~4967 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1d542eee571b80259568d49bd5dc2eb14fd80d01;p=thirdparty%2Fsamba.git r6249: Get the comparison the right way around... Jeremy. --- diff --git a/source/smbd/statcache.c b/source/smbd/statcache.c index 99f209006b3..8e22d9687b8 100644 --- a/source/smbd/statcache.c +++ b/source/smbd/statcache.c @@ -52,7 +52,7 @@ void stat_cache_add( const char *full_orig_name, const char *orig_translated_pat if (!lp_stat_cache()) return; - if (sc_size && (sc_size*1024 > tdb_stat_cache->map_size)) { + if (sc_size && (tdb_stat_cache->map_size > sc_size*1024)) { reset_stat_cache(); }