diff --git a/NewRelic.Platform.Sdk/Runner.cs b/NewRelic.Platform.Sdk/Runner.cs index 5bbcaca..0650fc8 100755 --- a/NewRelic.Platform.Sdk/Runner.cs +++ b/NewRelic.Platform.Sdk/Runner.cs @@ -175,7 +175,16 @@ private void InitializeFactoryAgents() private int GetPollInterval() { - int pollInterval = 60; + int pollInterval; + if (this.newRelicConfig.PollInterval.HasValue) + { + pollInterval = this.newRelicConfig.PollInterval.Value; + } + else + { + pollInterval = 60; + } + return pollInterval *= 1000; // Convert to milliseconds since that's what system calls expect; }