diff options
author | Daniel Lange <DLange@git.local> | 2022-02-04 11:23:02 +0100 |
---|---|---|
committer | Daniel Lange <DLange@git.local> | 2022-02-04 11:23:02 +0100 |
commit | a6822e98434cf7da6fab033898094976d881ee0f (patch) | |
tree | 2b0f2ac3ad8c9e9a8c01bb692d9bdb51ce91e83b /darwin/Platform.c | |
parent | 30ce3b4c264c51c98f280e88e23792ff7deb2317 (diff) | |
download | debian_htop-a6822e98434cf7da6fab033898094976d881ee0f.tar.gz debian_htop-a6822e98434cf7da6fab033898094976d881ee0f.tar.bz2 debian_htop-a6822e98434cf7da6fab033898094976d881ee0f.zip |
New upstream version 3.1.2upstream/3.1.2
Diffstat (limited to 'darwin/Platform.c')
-rw-r--r-- | darwin/Platform.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/darwin/Platform.c b/darwin/Platform.c index 3f596a3..152f617 100644 --- a/darwin/Platform.c +++ b/darwin/Platform.c @@ -126,7 +126,7 @@ static double Platform_nanosecondsPerMachTick = 1.0; static double Platform_nanosecondsPerSchedulerTick = -1; -void Platform_init(void) { +bool Platform_init(void) { Platform_nanosecondsPerMachTick = Platform_calculateNanosecondsPerMachTick(); // Determine the number of scheduler clock ticks per second @@ -139,6 +139,8 @@ void Platform_init(void) { const double nanos_per_sec = 1e9; Platform_nanosecondsPerSchedulerTick = nanos_per_sec / scheduler_ticks_per_sec; + + return true; } // Converts ticks in the Mach "timebase" to nanoseconds. |