Skip to content

Commit

Permalink
fixed lint
Browse files Browse the repository at this point in the history
  • Loading branch information
TheFireMike committed Jun 18, 2021
1 parent dc3e647 commit a75cc62
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions config/codecommunicator/ekinops_module_reader_opm.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand All @@ -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)
}
Expand Down
4 changes: 2 additions & 2 deletions config/codecommunicator/ekinops_module_reader_transponder.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand All @@ -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")
}
Expand Down

0 comments on commit a75cc62

Please sign in to comment.