mirror of
https://github.com/nicolargo/glances.git
synced 2026-04-20 13:57:37 -04:00
RV1126BP-70: Fix Codacy issues in rockchip_mpp.py
- Remove unnecessary pass statement in exit() - Replace unused variable 'addr' with '_'
This commit is contained in:
@@ -62,7 +62,6 @@ class RockchipMPP:
|
||||
|
||||
def exit(self):
|
||||
"""Close Rockchip MPP class."""
|
||||
pass
|
||||
|
||||
def _ensure_load_interval(self):
|
||||
"""Set load_interval if not already set, so /proc/mpp_service/load returns data."""
|
||||
@@ -125,7 +124,7 @@ class RockchipMPP:
|
||||
|
||||
pattern = r'(\S+)\.(\w+)\s+load:\s*([\d.]+)%\s+utilization:\s*([\d.]+)%'
|
||||
for match in re.finditer(pattern, content):
|
||||
addr, dev_name, load_str, util_str = match.groups()
|
||||
_, dev_name, load_str, util_str = match.groups()
|
||||
|
||||
stats = MPPStats()
|
||||
stats.engine_id = f'rockchip_{dev_name}'
|
||||
|
||||
Reference in New Issue
Block a user