StatsManager: updated maintenance timer interval to count stats early.

This commit is contained in:
Shreyas Zare
2020-07-18 12:08:56 +05:30
parent f9be5c7f3d
commit 690ac9de2d

View File

@@ -59,8 +59,8 @@ namespace DnsServerCore.Dns
readonly ConcurrentDictionary<DateTime, StatCounter> _dailyStatsCache = new ConcurrentDictionary<DateTime, StatCounter>();
readonly Timer _maintenanceTimer;
const int MAINTENANCE_TIMER_INITIAL_INTERVAL = 60000;
const int MAINTENANCE_TIMER_INTERVAL = 60000;
const int MAINTENANCE_TIMER_INITIAL_INTERVAL = 10000;
const int MAINTENANCE_TIMER_INTERVAL = 10000;
readonly ConcurrentQueue<StatsQueueItem> _queue = new ConcurrentQueue<StatsQueueItem>();
readonly Thread _consumerThread;