diff options
Diffstat (limited to 'src/utl_cpuu.cpp')
-rwxr-xr-x | src/utl_cpuu.cpp | 6 |
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]); } } |