@@ -270,7 +270,7 @@ class CacheAllocatorConfig {
270270 // to evict to the next tier
271271 CacheAllocatorConfig& enableBackgroundEvictor (
272272 std::shared_ptr<BackgroundEvictorStrategy> backgroundEvictorStrategy,
273- std::chrono::seconds regularInterval);
273+ std::chrono::milliseconds regularInterval);
274274
275275 // This enables an optimization for Pool rebalancing and resizing.
276276 // The rough idea is to ensure only the least useful items are evicted when
@@ -440,7 +440,7 @@ class CacheAllocatorConfig {
440440 std::chrono::milliseconds poolRebalanceInterval{std::chrono::seconds{1 }};
441441
442442 // time interval to sleep between runs of the background evictor
443- std::chrono::milliseconds backgroundEvictorInterval{std::chrono::seconds{ 1 }};
443+ std::chrono::milliseconds backgroundEvictorInterval{std::chrono::milliseconds{ 1000 }};
444444
445445 // Free slabs pro-actively if the ratio of number of freeallocs to
446446 // the number of allocs per slab in a slab class is above this
@@ -984,7 +984,7 @@ CacheAllocatorConfig<T>& CacheAllocatorConfig<T>::enablePoolRebalancing(
984984template <typename T>
985985CacheAllocatorConfig<T>& CacheAllocatorConfig<T>::enableBackgroundEvictor(
986986 std::shared_ptr<BackgroundEvictorStrategy> strategy,
987- std::chrono::seconds interval) {
987+ std::chrono::milliseconds interval) {
988988 backgroundEvictorStrategy = strategy;
989989 backgroundEvictorInterval = interval;
990990 return *this ;
0 commit comments