diff --git a/modules/contrib/nvidiagpu.py b/modules/contrib/nvidiagpu.py index cd051cb..9d58d17 100644 --- a/modules/contrib/nvidiagpu.py +++ b/modules/contrib/nvidiagpu.py @@ -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 "not found" in self.__utilization def update(self): sp = util.cli.execute('nvidia-smi -q', ignore_errors=True)