[modules/nvidiagpu] fix module
This commit is contained in:
parent
a8ab4f9509
commit
3812be272a
1 changed files with 1 additions and 3 deletions
|
@ -25,9 +25,7 @@ class Module(core.module.Module):
|
|||
return self.__utilization
|
||||
|
||||
def hidden(self):
|
||||
if "not found" in self._utilization.startswith("not found"):
|
||||
return True
|
||||
return False
|
||||
return self.__utilization.startswith("not found")
|
||||
|
||||
def update(self):
|
||||
sp = util.cli.execute('nvidia-smi -q', ignore_errors=True)
|
||||
|
|
Loading…
Add table
Reference in a new issue