summaryrefslogtreecommitdiffstats
path: root/src/utl_cpuu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/utl_cpuu.cpp')
-rwxr-xr-xsrc/utl_cpuu.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/utl_cpuu.cpp b/src/utl_cpuu.cpp
index 7786356e..47c78c8e 100755
--- a/src/utl_cpuu.cpp
+++ b/src/utl_cpuu.cpp
@@ -62,10 +62,10 @@ uint8_t CCpuUtlCp::GetValRaw(){
}
/* get cpu % utilization history */
-void CCpuUtlCp::GetHistory(cpu_vct_t &cpu_vct){
- cpu_vct.clear();
+void CCpuUtlCp::GetHistory(cpu_vct_st &cpu_vct){
+ cpu_vct.m_history.clear();
for (int i = m_history_latest_index + m_history_size; i > m_history_latest_index; i--) {
- cpu_vct.push_back(m_cpu_util[i % m_history_size]);
+ cpu_vct.m_history.push_back(m_cpu_util[i % m_history_size]);
}
}