Skip to content

Commit

Permalink
Adjust warn threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
KC3PIB authored and KC3PIB committed Mar 24, 2022
1 parent b25aec7 commit b00a93a
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ namespace WsjtxUtils.Searchlight.Common.Settings
/// </summary>
public class PskReporterSettings
{
const int RetrievalPeriodWarnLimit = 300;

private int _reportRetrievalPeriodSeconds;

/// <summary>
Expand All @@ -24,8 +26,8 @@ public int ReportRetrievalPeriodSeconds
{
get => _reportRetrievalPeriodSeconds; set
{
if (value < 300)
Log.Warning("The current PskReporterSettings.ReportRetrievalPeriodSeconds value of {value} is less than 300 seconds, is not recommended, and will likely result in the requests being rejected for abuse. Phil, of PSK Reporter, has created a service of enormous importance to the amateur radio community, don't be a lid", value);
if (value < RetrievalPeriodWarnLimit)
Log.Warning("The current PskReporterSettings.ReportRetrievalPeriodSeconds value of {value} is less than {limit} seconds, is not recommended, and will likely result in the requests being rejected for abuse. Philip does a considerable service to the ham radio community with this data, don't be a lid", value, RetrievalPeriodWarnLimit);
_reportRetrievalPeriodSeconds = value;
}
}
Expand Down

0 comments on commit b00a93a

Please sign in to comment.