From 30ce3b4c264c51c98f280e88e23792ff7deb2317 Mon Sep 17 00:00:00 2001 From: Daniel Lange Date: Fri, 15 Oct 2021 09:03:04 +0200 Subject: New upstream version 3.1.1 --- pcp/PCPProcessList.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'pcp/PCPProcessList.c') diff --git a/pcp/PCPProcessList.c b/pcp/PCPProcessList.c index b55b5a4..554e43d 100644 --- a/pcp/PCPProcessList.c +++ b/pcp/PCPProcessList.c @@ -3,7 +3,7 @@ htop - PCPProcessList.c (C) 2014 Hisham H. Muhammad (C) 2020-2021 htop dev team (C) 2020-2021 Red Hat, Inc. -Released under the GNU GPLv2, see the COPYING file +Released under the GNU GPLv2+, see the COPYING file in the source distribution for its full text. */ @@ -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); -- cgit v1.2.3