From a1294b1c7e12254ce0926d5bb9cd316ae092ce5f Mon Sep 17 00:00:00 2001 From: DN2 Date: Tue, 24 Jul 2018 21:22:45 -0700 Subject: [PATCH] Fix tag limits. --- core/poller/unidev/uap.go | 1 - core/poller/unidev/usg.go | 1 - core/poller/unidev/usw.go | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/core/poller/unidev/uap.go b/core/poller/unidev/uap.go index af7c2986..a811c0c5 100644 --- a/core/poller/unidev/uap.go +++ b/core/poller/unidev/uap.go @@ -39,7 +39,6 @@ func (u UAP) Points() ([]*influx.Point, error) { "has_speaker": strconv.FormatBool(u.HasSpeaker), "inform_ip": u.InformIP, "isolated": strconv.FormatBool(u.Isolated), - "last_seen": strconv.FormatFloat(u.LastSeen, 'f', 6, 64), "last_uplink_mac": u.LastUplink.UplinkMac, "last_uplink_remote_port": strconv.Itoa(u.LastUplink.UplinkRemotePort), "known_cfgversion": u.KnownCfgversion, diff --git a/core/poller/unidev/usg.go b/core/poller/unidev/usg.go index 86efb7ab..a8123705 100644 --- a/core/poller/unidev/usg.go +++ b/core/poller/unidev/usg.go @@ -30,7 +30,6 @@ func (u USG) Points() ([]*influx.Point, error) { "discovered_via": u.DiscoveredVia, "guest_token": u.GuestToken, "inform_ip": u.InformIP, - "last_seen": strconv.FormatFloat(u.LastSeen, 'f', 6, 64), "known_cfgversion": u.KnownCfgversion, "led_override": u.LedOverride, "locating": strconv.FormatBool(u.Locating), diff --git a/core/poller/unidev/usw.go b/core/poller/unidev/usw.go index 8211ca2b..5a2e491e 100644 --- a/core/poller/unidev/usw.go +++ b/core/poller/unidev/usw.go @@ -45,7 +45,6 @@ func (u USW) Points() ([]*influx.Point, error) { "jumboframe_enabled": strconv.FormatBool(u.JumboframeEnabled), "stp_priority": u.StpPriority, "stp_version": u.StpVersion, - "uplink_depth": strconv.FormatFloat(u.UplinkDepth, 'f', 6, 64), } fields := map[string]interface{}{ "fw_caps": u.FwCaps, @@ -108,6 +107,7 @@ func (u USW) Points() ([]*influx.Point, error) { "stat_tx_errors": u.Stat.TxErrors, "stat_tx_packets": u.Stat.TxPackets, "stat_tx_retries": u.Stat.TxRetries, + "uplink_depth": strconv.FormatFloat(u.UplinkDepth, 'f', 6, 64), // Add the port stats too. } pt, err := influx.NewPoint("usw", tags, fields, time.Now())