summaryrefslogtreecommitdiffstats
path: root/ProcessList.c
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2020-12-13 13:16:44 +0100
committerBenBE <BenBE@geshi.org>2020-12-18 22:43:21 +0100
commit26993d2d2b2be391adbfaa2ee53ee3e77f323b28 (patch)
tree574d7584b410a403bbf5ca89cd01ec3c3290ac64 /ProcessList.c
parent0401df8cbd3193a43e616e36244e0811376afbfd (diff)
Support clock_gettime() on OSX El Capitan and earlier
Diffstat (limited to 'ProcessList.c')
-rw-r--r--ProcessList.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ProcessList.c b/ProcessList.c
index a12e8534..b7800e49 100644
--- a/ProcessList.c
+++ b/ProcessList.c
@@ -10,8 +10,8 @@ in the source distribution for its full text.
#include <assert.h>
#include <stdlib.h>
#include <string.h>
-#include <time.h>
+#include "Compat.h"
#include "CRT.h"
#include "Hashtable.h"
#include "Macros.h"
@@ -538,8 +538,8 @@ void ProcessList_scan(ProcessList* this, bool pauseProcessUpdate) {
if (!firstScanDone) {
this->scanTs = 0;
firstScanDone = true;
- } else if (clock_gettime(CLOCK_MONOTONIC, &now) == 0) {
- this->scanTs = now.tv_sec;
+ } else if (Compat_clock_monotonic_gettime(&now) == 0) {
+ this->scanTs = now.tv_sec + now.tv_nsec / 1000000000;
}
ProcessList_goThroughEntries(this, false);

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