Commit 11e8c24e authored by Harald Sitter's avatar Harald Sitter 🏳️‍🌈 Committed by Arjen Hiemstra
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 2e8aa7c0
......@@ -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
Supports Markdown
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