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
59ea9f02
Commit
59ea9f02
authored
Oct 05, 2020
by
David Redondo
🏎
Browse files
There can be multiple spaces between the first and second column
parent
3c51bd39
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/global/cpu/linuxcpuplugin.cpp
View file @
59ea9f02
...
...
@@ -59,7 +59,7 @@ void LinuxCpuPluginPrivate::update()
stat
.
open
(
QIODevice
::
ReadOnly
);
QByteArray
line
;
for
(
QByteArray
line
=
stat
.
readLine
();
!
line
.
isNull
();
line
=
stat
.
readLine
())
{
auto
values
=
line
.
split
(
' '
);
auto
values
=
line
.
simplified
().
split
(
' '
);
if
(
!
line
.
startsWith
(
"cpu"
))
{
continue
;
}
...
...
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