From a75cc62c5ea4e90a88afc6a6a633d8d7347ef26e Mon Sep 17 00:00:00 2001 From: mikameyer Date: Fri, 18 Jun 2021 09:57:13 +0200 Subject: [PATCH] fixed lint --- config/codecommunicator/ekinops_module_reader_opm.go | 4 ++-- config/codecommunicator/ekinops_module_reader_transponder.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config/codecommunicator/ekinops_module_reader_opm.go b/config/codecommunicator/ekinops_module_reader_opm.go index 18624da..e9ecb3b 100644 --- a/config/codecommunicator/ekinops_module_reader_opm.go +++ b/config/codecommunicator/ekinops_module_reader_opm.go @@ -100,7 +100,7 @@ func ekinopsReadOPMMetrics(ctx context.Context, oids ekinopsOPMOIDs) ([]device.O if err != nil { return nil, errors.Wrap(err, "failed to get tx power for optical amplifier interface") } - valueFloat, err := strconv.ParseFloat(value, 10) + valueFloat, err := strconv.ParseFloat(value, 64) if err != nil { return nil, errors.Wrap(err, "failed to parse snmp response to float64") } @@ -127,7 +127,7 @@ func ekinopsReadOPMMetrics(ctx context.Context, oids ekinopsOPMOIDs) ([]device.O if err != nil { return nil, errors.Wrapf(err, "failed to get snmp response as string (oid: %s)", channelResult.GetOID()) } - value, err := strconv.ParseFloat(valueString, 10) + value, err := strconv.ParseFloat(valueString, 64) if err != nil { return nil, errors.Wrapf(err, "failed to parse snmp response to float64 (response: %s)", valueString) } diff --git a/config/codecommunicator/ekinops_module_reader_transponder.go b/config/codecommunicator/ekinops_module_reader_transponder.go index 13d9664..e7d9ad8 100644 --- a/config/codecommunicator/ekinops_module_reader_transponder.go +++ b/config/codecommunicator/ekinops_module_reader_transponder.go @@ -134,7 +134,7 @@ func ekinopsReadTransponderMetrics(ctx context.Context, oids ekinopsTransponderO if err != nil { return nil, errors.Wrap(err, "failed to get rx power for optical amplifier interface") } - valueFloat, err := strconv.ParseFloat(value, 10) + valueFloat, err := strconv.ParseFloat(value, 64) if err != nil { return nil, errors.Wrap(err, "failed to parse snmp response to float64") } @@ -151,7 +151,7 @@ func ekinopsReadTransponderMetrics(ctx context.Context, oids ekinopsTransponderO if err != nil { return nil, errors.Wrap(err, "failed to get tx power for optical amplifier interface") } - valueFloat, err := strconv.ParseFloat(value, 10) + valueFloat, err := strconv.ParseFloat(value, 64) if err != nil { return nil, errors.Wrap(err, "failed to parse snmp response to float64") }