[modules/nvidiagpu] fix module

This commit is contained in:
me 2020-05-02 10:47:39 +03:00
parent a8ab4f9509
commit 3812be272a

View file

@ -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)