remove bogus clock variant check
authorPhilipp Gesang <philipp.gesang@intra2net.com>
Thu, 4 Apr 2019 14:35:47 +0000 (16:35 +0200)
committerPhilipp Gesang <philipp.gesang@intra2net.com>
Thu, 4 Apr 2019 14:35:49 +0000 (16:35 +0200)
Spotted by Tom: There are no variants to CLOCK_BOOTTIME so
this would fall back on the default monotonic clock.

src/timefunc.cpp

index 88e6c33..b486de1 100644 (file)
@@ -1055,9 +1055,7 @@ namespace clock {
                 }
 
                 case type::boot: {
-                    if (var & type::exact) {
-                        cid = CLOCK_BOOTTIME;
-                    }
+                    cid = CLOCK_BOOTTIME;
                     break;
                 }