From 4ceada9d0c5fb43138ae941879d14adde0c96657 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D1=8B=D1=87=D0=BA=D0=BE=D0=B2=20=D0=90=D0=BD=D0=B4?= =?UTF-8?q?=D1=80=D0=B5=D0=B9?= Date: Wed, 6 Feb 2019 22:37:32 +0000 Subject: [PATCH] git-svn-id: svn://db.shs.com.ru/pip@711 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5 --- src_main/system/pisystemmonitor.cpp | 6 +----- src_main/system/pisystemmonitor.h | 1 - 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src_main/system/pisystemmonitor.cpp b/src_main/system/pisystemmonitor.cpp index 86f88461..3c7d111a 100755 --- a/src_main/system/pisystemmonitor.cpp +++ b/src_main/system/pisystemmonitor.cpp @@ -56,7 +56,6 @@ PRIVATE_DEFINITION_END(PISystemMonitor) PISystemMonitor::PISystemMonitor(): PIThread() { - self_ = false; pID_ = cycle = 0; cpu_count = PISystemInfo::instance()->processorsCount; #ifndef FREERTOS @@ -90,7 +89,6 @@ PISystemMonitor::ProcessStats::ProcessStats() { #ifndef FREERTOS bool PISystemMonitor::startOnProcess(int pID, int interval_ms) { stop(); - self_ = false; pID_ = pID; cycle = -1; #ifndef WINDOWS @@ -118,12 +116,10 @@ bool PISystemMonitor::startOnProcess(int pID, int interval_ms) { bool PISystemMonitor::startOnSelf(int interval_ms) { #ifndef FREERTOS bool ret = startOnProcess(PIProcess::currentPID(), interval_ms); -#else - self_ = false; cycle = -1; +#else bool ret = start(interval_ms); #endif - self_ = true; return ret; } diff --git a/src_main/system/pisystemmonitor.h b/src_main/system/pisystemmonitor.h index 0dbcc71b..68212d5a 100755 --- a/src_main/system/pisystemmonitor.h +++ b/src_main/system/pisystemmonitor.h @@ -90,7 +90,6 @@ private: PIVector cur_ts; PIMap last_tm, cur_tm; PIMap tbid; - bool self_; int pID_, page_size, cpu_count, cycle; #ifndef FREERTOS PRIVATE_DECLARATION