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") }