You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by ne...@apache.org on 2016/11/07 19:30:04 UTC
[18/21] incubator-trafficcontrol git commit: Fix TM2 monitorconfig to
set statPollInterval
Fix TM2 monitorconfig to set statPollInterval
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/7401f7c4
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/7401f7c4
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/7401f7c4
Branch: refs/heads/master
Commit: 7401f7c4dd9afdf520cbea904b7f8da7dfcacf42
Parents: 78c4c0c
Author: Robert Butts <ro...@gmail.com>
Authored: Thu Nov 3 14:19:29 2016 -0600
Committer: Dave Neuman <ne...@apache.org>
Committed: Mon Nov 7 12:29:08 2016 -0700
----------------------------------------------------------------------
.../experimental/traffic_monitor/manager/monitorconfig.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/7401f7c4/traffic_monitor/experimental/traffic_monitor/manager/monitorconfig.go
----------------------------------------------------------------------
diff --git a/traffic_monitor/experimental/traffic_monitor/manager/monitorconfig.go b/traffic_monitor/experimental/traffic_monitor/manager/monitorconfig.go
index 5f239bd..0a7c657 100644
--- a/traffic_monitor/experimental/traffic_monitor/manager/monitorconfig.go
+++ b/traffic_monitor/experimental/traffic_monitor/manager/monitorconfig.go
@@ -148,7 +148,7 @@ func getHealthPeerStatPollIntervals(monitorConfig to.TrafficMonitorConfigMap, cf
statPollIntervalInt, statPollIntervalIsInt := statPollIntervalI.(float64)
if !statPollIntervalIsInt {
log.Warnf("Traffic Ops Monitor config 'stat.polling.interval' value '%v' type %T is not an integer, using health for stat\n", statPollIntervalI, statPollIntervalI)
- statPollIntervalI = healthPollIntervalI
+ statPollIntervalInt = healthPollIntervalInt
}
statPollInterval := trafficOpsStatPollIntervalToDuration(int(statPollIntervalInt))