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

Update process-list.cpp

Delete the cout and the include of iostream
parent 0571b3a3
No related branches found
No related tags found
No related merge requests found
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
* Author: O. Stasse, 2019 * Author: O. Stasse, 2019
* See LICENSE file in the root directory of this repository. * See LICENSE file in the root directory of this repository.
*/ */
#include <iostream>
#include <fstream> #include <fstream>
#include <sstream> #include <sstream>
#include <string> #include <string>
...@@ -95,8 +94,7 @@ void CPUData::ProcessLine(std::istringstream &aCPULine) ...@@ -95,8 +94,7 @@ void CPUData::ProcessLine(std::istringstream &aCPULine)
percent_ += (double)( softirq_period_)/(double)(total_period_) * 100.0; percent_ += (double)( softirq_period_)/(double)(total_period_) * 100.0;
percent_ += (double)( steal_period_)/(double)(total_period_) * 100.0; percent_ += (double)( steal_period_)/(double)(total_period_) * 100.0;
percent_ += (double)( iowait_period_)/(double)(total_period_) * 100.0; percent_ += (double)( iowait_period_)/(double)(total_period_) * 100.0;
} }
std::cout << cpu_id_ << " " << percent_ << std::endl;
} }
System::System() System::System()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment