From ba7b5dff853a3b11b0cc2e7b29cfc1cd99e606f7 Mon Sep 17 00:00:00 2001 From: imarom Date: Wed, 10 Aug 2016 17:45:36 +0300 Subject: core mask - first phase --- src/utl_cpuu.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/utl_cpuu.cpp') 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]); } } -- cgit 1.2.3-korg