Skip to content
This repository has been archived by the owner on Nov 5, 2023. It is now read-only.

Commit

Permalink
Fix: Device vendor-model information
Browse files Browse the repository at this point in the history
  • Loading branch information
hakandundar34coding committed Jan 25, 2023
1 parent 9027fdd commit 9771335
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Disk.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ def disk_device_model_name_func(self, selected_disk, disk_type, disk_parent_name
try:
with open("/sys/class/block/" + disk_or_parent_disk_name + "/device/device/modalias") as reader:
modalias_output = reader.read().strip()
device_vendor_name, device_model_name, _, _ = Common.device_vendor_model(modalias_output)
device_vendor_name, device_model_name, _, _ = Performance.performance_get_device_vendor_model_func(modalias_output)
except (FileNotFoundError, NotADirectoryError) as me:
pass

Expand Down Expand Up @@ -310,7 +310,7 @@ def disk_device_model_name_func(self, selected_disk, disk_type, disk_parent_name
try:
with open("/sys/class/block/" + disk_or_parent_disk_name + "/device/modalias") as reader:
modalias_output = reader.read().strip()
device_vendor_name, device_model_name, _, _ = Common.device_vendor_model(modalias_output)
device_vendor_name, device_model_name, _, _ = Performance.performance_get_device_vendor_model_func(modalias_output)
except (FileNotFoundError, NotADirectoryError) as me:
pass

Expand Down

0 comments on commit 9771335

Please sign in to comment.