Reduce background work interval

This commit is contained in:
Noi 2021-02-01 22:02:29 -08:00
parent 020e680436
commit 9667820df4

View file

@ -9,8 +9,8 @@ namespace BirthdayBot.BackgroundServices
/// </summary>
class ConnectionStatus : BackgroundService
{
// About 5 minutes
public const int StableScore = 300 / ShardBackgroundWorker.Interval;
// About 3 minutes
public const int StableScore = 180 / ShardBackgroundWorker.Interval;
public bool Stable { get { return Score >= StableScore; } }
public int Score { get; private set; }