From: Philipp Gesang Date: Thu, 4 Apr 2019 14:35:47 +0000 (+0200) Subject: remove bogus clock variant check X-Git-Tag: v2.11~1^2~5 X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=3d690deabd001413b2077c6e043404ecd3f03671;p=libi2ncommon 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. --- 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; }