File tree Expand file tree Collapse file tree 3 files changed +33
-32
lines changed Expand file tree Collapse file tree 3 files changed +33
-32
lines changed Original file line number Diff line number Diff line change @@ -105,21 +105,21 @@ class DYNAMIC_GRAPH_DLLAPI CPUData {
105
105
106
106
template <class Archive >
107
107
void serialize (Archive &ar, const unsigned int version) {
108
- ar &version;
109
- ar &total_time_;
110
- ar &user_mode_time_;
111
- ar &nice_time_;
112
- ar &system_time_;
113
- ar &system_all_time_;
114
- ar &idle_time_;
115
- ar &idle_all_time_;
116
- ar &iowait_time_;
117
- ar &irq_time_;
118
- ar &softirq_time_;
119
- ar &steal_time_;
120
- ar &guest_time_;
121
- ar &guest_nice_time_;
122
- ar &percent_;
108
+ ar & version;
109
+ ar & total_time_;
110
+ ar & user_mode_time_;
111
+ ar & nice_time_;
112
+ ar & system_time_;
113
+ ar & system_all_time_;
114
+ ar & idle_time_;
115
+ ar & idle_all_time_;
116
+ ar & iowait_time_;
117
+ ar & irq_time_;
118
+ ar & softirq_time_;
119
+ ar & steal_time_;
120
+ ar & guest_time_;
121
+ ar & guest_nice_time_;
122
+ ar & percent_;
123
123
}
124
124
};
125
125
@@ -154,10 +154,10 @@ class DYNAMIC_GRAPH_DLLAPI System {
154
154
155
155
template <class Archive >
156
156
void serialize (Archive &ar, const unsigned int version) {
157
- ar &version;
158
- ar &cpuNb_;
159
- ar &gCPUData_ ;
160
- ar &vCPUData_;
157
+ ar & version;
158
+ ar & cpuNb_;
159
+ ar & gCPUData_ ;
160
+ ar & vCPUData_;
161
161
}
162
162
};
163
163
} // namespace CPU
Original file line number Diff line number Diff line change @@ -81,13 +81,13 @@ void CPUData::ProcessLine(std::istringstream &aCPULine) {
81
81
total_time_ = ltotal_time;
82
82
83
83
if (total_period_ != 0 ) {
84
- percent_ = (double )(user_mode_period_) / (double )(total_period_)* 100.0 ;
85
- percent_ += (double )(nice_period_) / (double )(total_period_)* 100.0 ;
86
- percent_ += (double )(system_period_) / (double )(total_period_)* 100.0 ;
87
- percent_ += (double )(irq_period_) / (double )(total_period_)* 100.0 ;
88
- percent_ += (double )(softirq_period_) / (double )(total_period_)* 100.0 ;
89
- percent_ += (double )(steal_period_) / (double )(total_period_)* 100.0 ;
90
- percent_ += (double )(iowait_period_) / (double )(total_period_)* 100.0 ;
84
+ percent_ = (double )(user_mode_period_) / (double )(total_period_) * 100.0 ;
85
+ percent_ += (double )(nice_period_) / (double )(total_period_) * 100.0 ;
86
+ percent_ += (double )(system_period_) / (double )(total_period_) * 100.0 ;
87
+ percent_ += (double )(irq_period_) / (double )(total_period_) * 100.0 ;
88
+ percent_ += (double )(softirq_period_) / (double )(total_period_) * 100.0 ;
89
+ percent_ += (double )(steal_period_) / (double )(total_period_) * 100.0 ;
90
+ percent_ += (double )(iowait_period_) / (double )(total_period_) * 100.0 ;
91
91
}
92
92
}
93
93
Original file line number Diff line number Diff line change @@ -409,12 +409,13 @@ BOOST_AUTO_TEST_CASE(value_values) {
409
409
BOOST_CHECK (vs == values);
410
410
}
411
411
{
412
- // Cast does not work.
413
- // dg::command::EitherType eitherType (vvalues);
414
- // Values vs = static_cast<Values>(eitherType);
415
- // BOOST_CHECK_EQUAL(vs.size(), values.size());
416
- // BOOST_CHECK(vs == values);
417
- } { // Constructor
412
+ // Cast does not work.
413
+ // dg::command::EitherType eitherType (vvalues);
414
+ // Values vs = static_cast<Values>(eitherType);
415
+ // BOOST_CHECK_EQUAL(vs.size(), values.size());
416
+ // BOOST_CHECK(vs == values);
417
+ }
418
+ { // Constructor
418
419
Value vvs (vvalues);
419
420
BOOST_CHECK (vvs == vvalues);
420
421
}
You can’t perform that action at this time.
0 commit comments