From f9537714af7a53b2304c01a8f385831c7090b6dc Mon Sep 17 00:00:00 2001 From: Denis Krivak Date: Sat, 9 Sep 2023 15:39:21 +0200 Subject: [PATCH] Fix typos. --- api.go | 2 +- collector.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api.go b/api.go index c123433..5afaa7b 100644 --- a/api.go +++ b/api.go @@ -24,7 +24,7 @@ const ( // List of string constants from the XML API responses. const ( OperStateOK = "OPERATIONAL" - NetworkAccessAllowed = "NetworkAccess" + NetworkAccessAllowed = "Allowed" ) // CMSystemInfo shows cable modem system info. diff --git a/collector.go b/collector.go index d7a1f9c..8a1323e 100644 --- a/collector.go +++ b/collector.go @@ -67,7 +67,7 @@ func (c *Collector) collectCMSSystemInfo( }, []string{"mode"}) cmHardwareVersionGauge := prometheus.NewGaugeVec(prometheus.GaugeOpts{ Name: "connect_box_cm_hardware_version", - Help: "Hardware_version.", + Help: "Hardware version.", }, []string{"version"}) cmMacAddrGauge := prometheus.NewGaugeVec(prometheus.GaugeOpts{ Name: "connect_box_cm_mac_addr",