DevHeads.net

Review Request 125033: Implement systemUptimeSeconds for OS X

Review request for KDE Base Apps.

Repository: libksysguard

Description
Fix build on OS X

OS X doesn't provide CLOCK_MONOTONIC for clock_gettime so this patch
implements the uptime retrieval using clock_get_time

This patch fixes the build on OS X by using the empty process_gnu_p
also for platforms defining __APPLE__

Diffs
processcore/processes_atop_p.h f975a202d98993f1319322006fbb103ff91f7913
processcore/processes_local_p.cpp cabfeb0ca70f195dcc289850740b0c6e2c353044
processui/timeutil.h 23c6a92d131c589cf0c640b3b4aac6b9358059e9

Diff: <a href="https://git.reviewboard.kde.org/r/125033/diff/" title="https://git.reviewboard.kde.org/r/125033/diff/">https://git.reviewboard.kde.org/r/125033/diff/</a>

Testing
Build on OS X 10.8

Thanks,

Samuel Gaist

Comments

Re: Review Request 125033: Implement systemUptimeSeconds for OS

By Samuel Gaist at 09/06/2015 - 14:49

(Updated Sept. 6, 2015, 7:49 p.m.)

Status
This change has been marked as submitted.

Review request for KDE Base Apps.

Repository: libksysguard

Description
Fix build on OS X

OS X doesn't provide CLOCK_MONOTONIC for clock_gettime so this patch
implements the uptime retrieval using clock_get_time

This patch fixes the build on OS X by using the empty process_gnu_p
also for platforms defining __APPLE__

Diffs
processcore/processes_atop_p.h f975a202d98993f1319322006fbb103ff91f7913
processcore/processes_local_p.cpp cabfeb0ca70f195dcc289850740b0c6e2c353044
processui/timeutil.h 23c6a92d131c589cf0c640b3b4aac6b9358059e9

Diff: <a href="https://git.reviewboard.kde.org/r/125033/diff/" title="https://git.reviewboard.kde.org/r/125033/diff/">https://git.reviewboard.kde.org/r/125033/diff/</a>

Testing
Build on OS X 10.8

Thanks,

Samuel Gaist

Re: Review Request 125033: Implement systemUptimeSeconds for OS

By Albert Astals Cid at 09/06/2015 - 13:49

Ship it!

Ship It!

- Albert Astals Cid

On set. 3, 2015, 10:44 a.m., Samuel Gaist wrote: