From a671dcb19b7f1c100dd1fb01a3a42409b1b3f3ef Mon Sep 17 00:00:00 2001 From: Feng_Qi Date: Mon, 6 Jul 2020 13:30:52 +0800 Subject: [PATCH] version 4.2.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复一个 iprange 空时没有正常开启监控的bug --- funcs/swifstat.go | 2 +- g/const.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/funcs/swifstat.go b/funcs/swifstat.go index 17d4a80..a722a11 100644 --- a/funcs/swifstat.go +++ b/funcs/swifstat.go @@ -132,7 +132,7 @@ func AllSwitchIp() (allIp []string) { } func SwIfMetrics() (L []*model.MetricValue) { - if g.Config().Switch.Enabled && len(g.Config().Switch.IpRange) > 0 { + if g.Config().Switch.Enabled { return swIfMetrics() } return diff --git a/g/const.go b/g/const.go index d5c4a49..9891484 100644 --- a/g/const.go +++ b/g/const.go @@ -25,6 +25,6 @@ import ( // 4.1.1 n9e mode support debug // 4.2.0 support get allip from ecmc nodes const ( - VERSION = "4.2.0" + VERSION = "4.2.1" COLLECT_INTERVAL = time.Second )