Skip to content
Snippets Groups Projects
Unverified Commit 0571b3a3 authored by corentinberge's avatar corentinberge Committed by GitHub
Browse files

Update process-list.cpp

total_periode is a long long unsigned int, not a double
parent 2970e825
No related branches found
No related tags found
No related merge requests found
...@@ -86,7 +86,7 @@ void CPUData::ProcessLine(std::istringstream &aCPULine) ...@@ -86,7 +86,7 @@ void CPUData::ProcessLine(std::istringstream &aCPULine)
guest_time_ = lguest_all_time; guest_time_ = lguest_all_time;
total_time_ = ltotal_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)(user_mode_period_)/(double)(total_period_) * 100.0;
percent_ += (double)( nice_period_)/(double)(total_period_) * 100.0; percent_ += (double)( nice_period_)/(double)(total_period_) * 100.0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment