From 3d690deabd001413b2077c6e043404ecd3f03671 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Thu, 4 Apr 2019 16:35:47 +0200 Subject: [PATCH] remove bogus clock variant check Spotted by Tom: There are no variants to CLOCK_BOOTTIME so this would fall back on the default monotonic clock. --- src/timefunc.cpp | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/src/timefunc.cpp b/src/timefunc.cpp index 88e6c33..b486de1 100644 --- a/src/timefunc.cpp +++ b/src/timefunc.cpp @@ -1055,9 +1055,7 @@ namespace clock { } case type::boot: { - if (var & type::exact) { - cid = CLOCK_BOOTTIME; - } + cid = CLOCK_BOOTTIME; break; } -- 1.7.1