aboutsummaryrefslogtreecommitdiffstats
path: root/pcp/PCPProcessList.c
diff options
context:
space:
mode:
authorDaniel Lange <DLange@git.local>2021-10-15 09:03:05 +0200
committerDaniel Lange <DLange@git.local>2021-10-15 09:03:05 +0200
commitc733b3f6130c70e100c21c4f77d8fd48db80622c (patch)
treefac3278283232938169f928fd3d3ab641d5c6c8e /pcp/PCPProcessList.c
parent4582ae87a0a0675d0756b93dcda052c533cd2c96 (diff)
parent30ce3b4c264c51c98f280e88e23792ff7deb2317 (diff)
downloaddebian_htop-c733b3f6130c70e100c21c4f77d8fd48db80622c.tar.gz
debian_htop-c733b3f6130c70e100c21c4f77d8fd48db80622c.tar.bz2
debian_htop-c733b3f6130c70e100c21c4f77d8fd48db80622c.zip
Update upstream source from tag 'upstream/3.1.1'
Update to upstream version '3.1.1' with Debian dir c4b5e8f6455cfd05bffdaed787e2ebf5c7d9a632
Diffstat (limited to 'pcp/PCPProcessList.c')
-rw-r--r--pcp/PCPProcessList.c5
1 files changed, 3 insertions, 2 deletions
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(&timestamp);
+ if (PCPMetric_fetch(&timestamp) != true)
+ return;
double sample = this->timestamp;
this->timestamp = pmtimevalToReal(&timestamp);

© 2014-2024 Faster IT GmbH | imprint | privacy policy