From 5c46144e48d01d1e24f6e6108bbe65f3758e8c27 Mon Sep 17 00:00:00 2001 From: Noikoio Date: Mon, 17 Sep 2018 13:13:50 -0700 Subject: [PATCH] Lowered interval temporarily to improve responsiveness --- BirthdayBot/BackgroundWorker.vb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/BirthdayBot/BackgroundWorker.vb b/BirthdayBot/BackgroundWorker.vb index e22e5e5..542f360 100644 --- a/BirthdayBot/BackgroundWorker.vb +++ b/BirthdayBot/BackgroundWorker.vb @@ -11,7 +11,8 @@ Class BackgroundWorker Private ReadOnly _db As Database Private ReadOnly Property WorkerCancel As New CancellationTokenSource Private _workerTask As Task - Const Interval = 180 ' How often the worker wakes up, in seconds + ' NOTE: Interval greatly lowered. Raise to 45 seconds if server count goes up. + Const Interval = 15 ' How often the worker wakes up, in seconds Private _clock As IClock Sub New(instance As BirthdayBot, dbsettings As Database)