diff options
Diffstat (limited to 'core/SystemStatus.cpp')
-rw-r--r-- | core/SystemStatus.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/SystemStatus.cpp b/core/SystemStatus.cpp index f206b00..82f1314 100644 --- a/core/SystemStatus.cpp +++ b/core/SystemStatus.cpp @@ -1602,9 +1602,10 @@ bool SystemStatus::eventDataItemNotify(IDataItemCore* dataitem) @return true when successfully done ******************************************************************************/ -bool SystemStatus::getReport(SystemStatusReports& report, bool isLatestOnly) const { +bool SystemStatus::getReport(SystemStatusReports& report, bool isLatestOnly, + bool inSessionOnly) const { pthread_mutex_lock(&mMutexSystemStatus); - if (!mTracking) { + if (inSessionOnly && !mTracking) { pthread_mutex_unlock(&mMutexSystemStatus); return true; } |