From e1a8c002ded63f0ff87f8b2e9dc93370ff51e5ba Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Thu, 30 Jan 2020 14:39:12 +0200 Subject: Added auto update check interval to 30 minutes. Added auto update check interval to PPC settings. Updated event types PMR. --- .../PPC/Tango.PPC.Common/MachineUpdate/MachineUpdateManager.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Software/Visual_Studio/PPC/Tango.PPC.Common/MachineUpdate/MachineUpdateManager.cs') diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/MachineUpdate/MachineUpdateManager.cs b/Software/Visual_Studio/PPC/Tango.PPC.Common/MachineUpdate/MachineUpdateManager.cs index ded4d1dae..73a236dde 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.Common/MachineUpdate/MachineUpdateManager.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/MachineUpdate/MachineUpdateManager.cs @@ -106,11 +106,11 @@ namespace Tango.PPC.Common.MachineUpdate _logs = new List(); LogManager.NewLog += LogManager_NewLog; - _checkForUpdateTimer = new System.Timers.Timer(TimeSpan.FromMinutes(1).TotalMilliseconds); + _settings = SettingsManager.Default.GetOrCreate(); + + _checkForUpdateTimer = new System.Timers.Timer(_settings.AutoUpdateCheckInterval.TotalMilliseconds); _checkForUpdateTimer.Elapsed += _checkForUpdateTimer_Elapsed; _checkForUpdateTimer.Start(); - - _settings = SettingsManager.Default.GetOrCreate(); } #endregion -- cgit v1.3.1