summaryrefslogtreecommitdiffstats
path: root/ProcessList.c
diff options
context:
space:
mode:
authorNathan Scott <nathans@redhat.com>2021-04-08 09:26:48 +1000
committerNathan Scott <nathans@redhat.com>2021-04-09 10:43:33 +1000
commit367561175ab9da93d5c21861ec6c6b52933ccf15 (patch)
tree4aedda319b0f6cebb8def738f636d9aed873b213 /ProcessList.c
parentf3a37f9ef33cf5459acf1c5352f9c8104cce8806 (diff)
Update timestamps for the special process scans at startup also
Resolves https://github.com/htop-dev/htop/issues/592
Diffstat (limited to 'ProcessList.c')
-rw-r--r--ProcessList.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ProcessList.c b/ProcessList.c
index 6bc15611..1a84b651 100644
--- a/ProcessList.c
+++ b/ProcessList.c
@@ -35,9 +35,11 @@ ProcessList* ProcessList_init(ProcessList* this, const ObjectClass* klass, Users
// set later by platform-specific code
this->cpuCount = 0;
-
this->monotonicMs = 0;
+ // always maintain valid realtime timestamps
+ Platform_gettime_realtime(&this->realtime, &this->realtimeMs);
+
#ifdef HAVE_LIBHWLOC
this->topologyOk = false;
if (hwloc_topology_init(&this->topology) == 0) {

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