From eab19af241c935087458728b2bd654cb8a5e700f Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Fri, 3 Feb 2023 06:50:22 -0700 Subject: [PATCH] Remove trailing spaces --- frigate/util.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frigate/util.py b/frigate/util.py index 5d08581700..02433b358c 100755 --- a/frigate/util.py +++ b/frigate/util.py @@ -927,15 +927,15 @@ def get_nvidia_gpu_stats() -> dict[str, str]: ] if ( - "CUDA_VISIBLE_DEVICES" in os.environ + "CUDA_VISIBLE_DEVICES" in os.environ and os.environ["CUDA_VISIBLE_DEVICES"].isdigit() ): - nvidia_smi_command.extend(["--id", os.environ['CUDA_VISIBLE_DEVICES']]) + nvidia_smi_command.extend(["--id", os.environ["CUDA_VISIBLE_DEVICES"]]) elif ( - "NVIDIA_VISIBLE_DEVICES" in os.environ + "NVIDIA_VISIBLE_DEVICES" in os.environ and os.environ["NVIDIA_VISIBLE_DEVICES"].isdigit() ): - nvidia_smi_command.extend(["--id", os.environ['NVIDIA_VISIBLE_DEVICES']]) + nvidia_smi_command.extend(["--id", os.environ["NVIDIA_VISIBLE_DEVICES"]]) p = sp.run( nvidia_smi_command,