Skip to content

Commit

Permalink
fix nvidia module version parsing from /proc
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Sep 3, 2024
1 parent 28a1a6f commit d81c793
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xpra/codecs/nvidia/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,9 @@ def get_proc_driver_version() -> tuple:
vtuple = ()
else:
log_fn = log.debug
vtuple = bytestostr(v[p + len(KSTR):].strip().split(b" ")[0])
vtuple = bytestostr(v[p + len(KSTR):].strip().split(b" ")[0]).split(".")
log_fn(f" {NVIDIA_PROC_FILE!r} contents:")
for line in p.splitlines():
for line in v.splitlines():
log_fn(f" {bytestostr(line)!r}")
return vtuple

Expand Down

0 comments on commit d81c793

Please sign in to comment.