diff options
author | imarom <imarom@cisco.com> | 2016-08-10 17:45:36 +0300 |
---|---|---|
committer | imarom <imarom@cisco.com> | 2016-08-15 16:03:59 +0300 |
commit | ba7b5dff853a3b11b0cc2e7b29cfc1cd99e606f7 (patch) | |
tree | 25a2d72756217ef5d364a4c9b5a6e5e9a9d165a7 /src/utl_cpuu.cpp | |
parent | ce1de344579505665b88c2d548ca8d2acc135988 (diff) |
core mask - first phase
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]); } } |