Commit 726e7b6d authored by Harald Sitter's avatar Harald Sitter 🏳🌈
Browse files

fix nvidia line part count

the format line above has 8 parts, on my system I also get 8 parts. since
we only access up to element 5 we only need to check >=5 though. the
actual line format is already validated above, so we can be fairly loose
with our requirements here.

Test Plan:
- have nvidia
- shows data with patch

Reviewers: davidedmundson, ahiemstra

Reviewed By: davidedmundson

Subscribers: plasma-devel

Tags: #plasma

Differential Revision:
parent 3f639b1b
......@@ -83,7 +83,7 @@ void NvidiaPlugin::setup()
// format at time of writing is
// # gpu pid type sm mem enc dec command
if (parts.count() != 9) {
if (parts.count() < 5) { // we only access up to the 5th element
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