1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-09 12:32:31 +01:00

deskmetrics doesn't report during dev.

This commit is contained in:
kay.one 2012-02-12 23:49:53 -08:00
parent 90e5e8eef3
commit e5fa098d66
3 changed files with 13 additions and 5 deletions

View File

@ -70,7 +70,11 @@ private void InitReporting()
var deskMetricsClient = new DeskMetricsClient(Kernel.Get<ConfigProvider>().UGuid.ToString(), appId, _enviromentProvider.Version); var deskMetricsClient = new DeskMetricsClient(Kernel.Get<ConfigProvider>().UGuid.ToString(), appId, _enviromentProvider.Version);
Kernel.Bind<IDeskMetricsClient>().ToConstant(deskMetricsClient); Kernel.Bind<IDeskMetricsClient>().ToConstant(deskMetricsClient);
Kernel.Get<AnalyticsProvider>().Checkpoint();
if (EnviromentProvider.IsProduction)
{
Kernel.Get<AnalyticsProvider>().Checkpoint();
}
} }
private void InitQuality() private void InitQuality()

View File

@ -1,6 +1,7 @@
using System; using System;
using System.Linq; using System.Linq;
using Ninject; using Ninject;
using NzbDrone.Common;
using NzbDrone.Core.Model.Notification; using NzbDrone.Core.Model.Notification;
using NzbDrone.Core.Providers; using NzbDrone.Core.Providers;
@ -33,7 +34,10 @@ public TimeSpan DefaultInterval
public void Start(ProgressNotification notification, int targetId, int secondaryTargetId) public void Start(ProgressNotification notification, int targetId, int secondaryTargetId)
{ {
_analyticsProvider.Checkpoint(); if(EnviromentProvider.IsProduction)
{
_analyticsProvider.Checkpoint();
}
} }
} }
} }

View File

@ -34,7 +34,7 @@ public virtual void Checkpoint()
try try
{ {
//Don't report anything unless working from master branch. //Don't report anything unless working from master branch.
if (!IsOnMasterBranch() || !EnviromentProvider.IsProduction) if (!IsOnMasterBranch())
return; return;
if (EnviromentProvider.IsNewInstall) if (EnviromentProvider.IsNewInstall)