Skip to content

Commit

Permalink
dmidecode (inv plugin): remove dead code
Browse files Browse the repository at this point in the history
Change-Id: I362a675b284778af23b57afba871b49fe5796a28
  • Loading branch information
si-23 committed Feb 12, 2025
1 parent cd076e9 commit f4e6dd2
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions cmk/plugins/collection/agent_based/inventory_dmidecode.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,10 +345,3 @@ def _parse_voltage(v: str) -> float | None:

parts = v.split()
return float(parts[0])


def _parse_time(v: str) -> float: # 155 ns
parts = v.split()
if parts[1] == "ns":
return float(parts[0]) / 1000000000.0
return float(parts[0]) # assume seconds

0 comments on commit f4e6dd2

Please sign in to comment.