Skip to content

Commit

Permalink
Remove redundant get_identifiers in cpu graph
Browse files Browse the repository at this point in the history
(cherry picked from commit c295f0a)
  • Loading branch information
Qubad786 authored and bugclerk committed Feb 6, 2025
1 parent 4046e31 commit f7948ab
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@ class CPUPlugin(GraphBase):
def get_chart_name(self, identifier: typing.Optional[str] = None) -> str:
return 'truenas_cpu_usage.cpu'

async def get_identifiers(self) -> typing.Optional[list]:
cpu_usage = [f'cpu{i}' for i in cpu_info()['core']]
cpu_usage.append('cpu')
return cpu_usage


class CPUTempPlugin(GraphBase):

Expand Down

0 comments on commit f7948ab

Please sign in to comment.