1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-05-08 02:34:06 +02:00

Decrease post-update analytics report to 8h and increase startup delay to 2m

This commit is contained in:
chylex 2018-02-14 17:10:24 +01:00
parent f40a33192b
commit 1a5d2af779

View File

@ -42,7 +42,7 @@ public AnalyticsManager(FormBrowser browser, PluginManager plugins, string file)
this.saveTimer.Elapsed += saveTimer_Elapsed;
if (this.File.LastCollectionVersion != Program.VersionTag){
ScheduleReportIn(TimeSpan.FromHours(12), string.Empty);
ScheduleReportIn(TimeSpan.FromHours(8), string.Empty);
}
else{
RestartTimer();
@ -90,7 +90,7 @@ private void RestartTimer(){
TimeSpan diff = DateTime.Now.Subtract(File.LastDataCollection);
int minutesTillNext = (int)(CollectionInterval.TotalMinutes-Math.Floor(diff.TotalMinutes));
currentTimer.Interval = Math.Max(minutesTillNext, 1)*60000;
currentTimer.Interval = Math.Max(minutesTillNext, 2)*60000;
currentTimer.Start();
}