Skip to content

Commit

Permalink
Merge branch 'master' into 01_20240201_add_support_transcend_ssd
Browse files Browse the repository at this point in the history
  • Loading branch information
ec-michael-shih authored Feb 2, 2024
2 parents 0526717 + 538ec67 commit 820709d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sonic_platform_base/sonic_xcvr/api/xcvr_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def mw_to_dbm(mW):
return float("-inf")
elif mW < 0:
return float("NaN")
return 10. * log10(mW)
return round(10. * log10(mW), 3)

def get_model(self):
"""
Expand Down

0 comments on commit 820709d

Please sign in to comment.