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
fbd7c1e3
Commit
fbd7c1e3
authored
Oct 08, 2020
by
David Redondo
🏎
Browse files
Fix mistake adding enums instead of adding the values
parent
e8e87251
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/global/cpu/freebsdcpuplugin.cpp
View file @
fbd7c1e3
...
...
@@ -116,7 +116,7 @@ void FreeBsdCpuPluginPrivate::update()
return
;
}
auto
updateCpu
=
[]
(
auto
*
cpu
,
long
*
cp_time
){
cpu
->
update
(
cp_time
[
CP_SYS
+
CP_INTR
],
cp_time
[
CP_USER
]
+
cp_time
[
CP_NICE
],
cp_time
[
CP_IDLE
]);
cpu
->
update
(
cp_time
[
CP_SYS
]
+
cp_time
[
CP_INTR
],
cp_time
[
CP_USER
]
+
cp_time
[
CP_NICE
],
cp_time
[
CP_IDLE
]);
};
unsigned
int
numCores
=
m_container
->
objects
().
count
()
-
1
;
std
::
vector
<
long
>
cp_times
(
numCores
*
CPUSTATES
);
...
...
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