Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Plasma
KSysGuard
Commits
59ea9f02
Commit
59ea9f02
authored
Oct 05, 2020
by
David Redondo
🏎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
There can be multiple spaces between the first and second column
parent
3c51bd39
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
plugins/global/cpu/linuxcpuplugin.cpp
plugins/global/cpu/linuxcpuplugin.cpp
+1
-1
No files found.
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
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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