Archived
1
1
Fork 0

add TODOs

This commit is contained in:
Josh Lay 2023-04-21 13:06:15 -05:00
parent 5571b8bca4
commit e049a331b5
Signed by: jlay
GPG key ID: B265E45CACAD108A

View file

@ -1,5 +1,7 @@
#!/usr/bin/python3 #!/usr/bin/python3
"""Pretty Textual-based stats for AMD GPUs""" """Pretty Textual-based stats for AMD GPUs
TODO: restore argparse / --card, in case detection fails"""
from os import path, listdir from os import path, listdir
import glob import glob
import re import re
@ -15,7 +17,11 @@ from humanfriendly import format_size
def find_card(): def find_card():
"""searches /sys/class/drm/*/status for connected cards""" """searches /sys/class/drm/*/status for connected cards
TODO: move the name/amdgpu check from find_hwmon, here
if none found, return None.
script should exit: reporting no AMD GPUs found"""
_card = False _card = False
status_path = "/sys/class/drm/*/status" status_path = "/sys/class/drm/*/status"
files = glob.glob(status_path) files = glob.glob(status_path)