Kaydet (Commit) dcccf6df authored tarafından Hakan Dündar's avatar Hakan Dündar

Minor code improvements

üst 7e875ec6
......@@ -3350,9 +3350,8 @@ def process_gpu_tool_output_amdgpu_top(gpu_pci_address, gpu_tool_output_amdgpu_t
return gpu_load_memory_frequency_power_dict
def get_process_gpu_information():
def get_process_gpu_information():
gpu_process_information_dict = {}
......@@ -3371,8 +3370,6 @@ def get_process_gpu_information():
def gpu_process_information_amd_func():
command_list = ["amdgpu_top", "-J", "-s", "100ms", "-n", "1"]
if get_environment_type() == "flatpak":
command_list = ["flatpak-spawn", "--host"] + command_list
......@@ -3387,7 +3384,6 @@ def gpu_process_information_amd_func():
pass
def process_gpu_tool_process_output_amdgpu_top(gpu_tool_process_output_amdgpu_top, gpu_process_information_dict):
"""
Get values from command output if there was no error when running the command.
......@@ -3428,9 +3424,6 @@ def process_gpu_tool_process_output_amdgpu_top(gpu_tool_process_output_amdgpu_to
def gpu_load_nvidia_func():
"""
Get GPU load average for NVIDIA (PCI) GPUs.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment