Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
KSysGuard
Commits
b5506535
Commit
b5506535
authored
Oct 22, 2020
by
Laurent Montel
Browse files
Now it depends against new version. Old code can be removed
parent
eecb2abc
Changes
2
Hide whitespace changes
Inline
Side-by-side
plugins/process/network/network.cpp
View file @
b5506535
...
...
@@ -75,11 +75,7 @@ NetworkPlugin::NetworkPlugin(QObject *parent, const QVariantList &args)
const
QString
line
=
QString
::
fromUtf8
(
m_process
->
readLine
());
// Each line consists of: timestamp|PID|pid|IN|in_bytes|OUT|out_bytes
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
const
auto
parts
=
line
.
splitRef
(
QLatin1Char
(
'|'
),
QString
::
SkipEmptyParts
);
#else
const
auto
parts
=
line
.
splitRef
(
QLatin1Char
(
'|'
),
Qt
::
SkipEmptyParts
);
#endif
if
(
parts
.
size
()
<
7
)
{
continue
;
}
...
...
plugins/process/nvidia/nvidia.cpp
View file @
b5506535
...
...
@@ -79,11 +79,7 @@ void NvidiaPlugin::setup()
}
continue
;
}
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
const
auto
parts
=
line
.
splitRef
(
QLatin1Char
(
' '
),
QString
::
SkipEmptyParts
);
#else
const
auto
parts
=
line
.
splitRef
(
QLatin1Char
(
' '
),
Qt
::
SkipEmptyParts
);
#endif
// format at time of writing is
// # gpu pid type sm mem enc dec command
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment