diff options
Diffstat (limited to 'pcp/PCPProcessList.c')
-rw-r--r-- | pcp/PCPProcessList.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pcp/PCPProcessList.c b/pcp/PCPProcessList.c index e324e337..554e43d4 100644 --- a/pcp/PCPProcessList.c +++ b/pcp/PCPProcessList.c @@ -680,7 +680,8 @@ void ProcessList_goThroughEntries(ProcessList* super, bool pauseProcessUpdate) { PCPMetric_enable(PCP_PROC_SMAPS_SWAPPSS, smaps_flag && enabled); struct timeval timestamp; - PCPMetric_fetch(×tamp); + if (PCPMetric_fetch(×tamp) != true) + return; double sample = this->timestamp; this->timestamp = pmtimevalToReal(×tamp); |