From a72b5b51064ed80952aa63d3f9eeafafcb84e659 Mon Sep 17 00:00:00 2001 From: hypox64 Date: Sat, 16 May 2020 13:22:54 +0800 Subject: [PATCH] Fix some bug --- syseye.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/syseye.py b/syseye.py index a2253bb..c00b321 100644 --- a/syseye.py +++ b/syseye.py @@ -130,9 +130,10 @@ def get_gpu_use(): infos_str = infos_str.replace('|','') infos_str = infos_str.split('\n') print_flag = False + print(infos_str) for line in infos_str: line_split = line.split() - if 'No running' not in line and float(line_split[4].replace('MiB',''))>500: + if 'No running' not in line and'+-------' not in line and float(line_split[4].replace('MiB',''))>500: task_infos = task_infos+line[2:]+'\n' print_flag = True if not print_flag: -- GitLab