mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2024-11-10 04:27:25 +01:00
Simplified iota usage
This commit is contained in:
parent
f6dae7c013
commit
0b08ca9ae0
@ -46,23 +46,23 @@ func (m *NetstatCollector) Init(config json.RawMessage) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
fieldInterface = iota
|
fieldInterface = iota
|
||||||
fieldReceiveBytes = iota
|
fieldReceiveBytes
|
||||||
fieldReceivePackets = iota
|
fieldReceivePackets
|
||||||
fieldReceiveErrs = iota
|
fieldReceiveErrs
|
||||||
fieldReceiveDrop = iota
|
fieldReceiveDrop
|
||||||
fieldReceiveFifo = iota
|
fieldReceiveFifo
|
||||||
fieldReceiveFrame = iota
|
fieldReceiveFrame
|
||||||
fieldReceiveCompressed = iota
|
fieldReceiveCompressed
|
||||||
fieldReceiveMulticast = iota
|
fieldReceiveMulticast
|
||||||
fieldTransmitBytes = iota
|
fieldTransmitBytes
|
||||||
fieldTransmitPackets = iota
|
fieldTransmitPackets
|
||||||
fieldTransmitErrs = iota
|
fieldTransmitErrs
|
||||||
fieldTransmitDrop = iota
|
fieldTransmitDrop
|
||||||
fieldTransmitFifo = iota
|
fieldTransmitFifo
|
||||||
fieldTransmitColls = iota
|
fieldTransmitColls
|
||||||
fieldTransmitCarrier = iota
|
fieldTransmitCarrier
|
||||||
fieldTransmitCompressed = iota
|
fieldTransmitCompressed
|
||||||
)
|
)
|
||||||
|
|
||||||
m.matches = make(map[string][]NetstatCollectorMetric)
|
m.matches = make(map[string][]NetstatCollectorMetric)
|
||||||
|
Loading…
Reference in New Issue
Block a user