Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Guilhem Saurel
dynamic-graph
Commits
0571b3a3
Unverified
Commit
0571b3a3
authored
Aug 12, 2019
by
corentinberge
Committed by
GitHub
Aug 12, 2019
Browse files
Update process-list.cpp
total_periode is a long long unsigned int, not a double
parent
2970e825
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/mt/process-list.cpp
View file @
0571b3a3
...
...
@@ -86,7 +86,7 @@ void CPUData::ProcessLine(std::istringstream &aCPULine)
guest_time_
=
lguest_all_time
;
total_time_
=
ltotal_time
;
if
(
total_period_
!=
0
.0
)
if
(
total_period_
!=
0
)
{
percent_
=
(
double
)(
user_mode_period_
)
/
(
double
)(
total_period_
)
*
100.0
;
percent_
+=
(
double
)(
nice_period_
)
/
(
double
)(
total_period_
)
*
100.0
;
...
...
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