From a13d2f5ccebaa63929d77338bebee39bc3aed7e9 Mon Sep 17 00:00:00 2001 From: Ken Ross Date: Mon, 5 Jan 2015 11:54:40 +0000 Subject: [PATCH] Updated Runner to use poll_interval from json config --- NewRelic.Platform.Sdk/Runner.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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; }