aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@broadpark.no>2020-01-07 23:51:26 +0100
committerTor Egge <Tor.Egge@broadpark.no>2020-01-08 00:15:52 +0100
commit03b1d8abecbf7db72845f883bf20c3c9bdf820a4 (patch)
tree5ea961ee6d85053a1af0cba81ea4baec0a0b5fba /searchcore
parentac86bb091d01e6299d6f3e88c531d1cd6903474d (diff)
system_time and steady_time might have different duration types.
Diffstat (limited to 'searchcore')
-rw-r--r--searchcore/src/vespa/searchcore/proton/flushengine/flushengine.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/flushengine/flushengine.h b/searchcore/src/vespa/searchcore/proton/flushengine/flushengine.h
index 36822a6da65..2a7115f4d33 100644
--- a/searchcore/src/vespa/searchcore/proton/flushengine/flushengine.h
+++ b/searchcore/src/vespa/searchcore/proton/flushengine/flushengine.h
@@ -24,7 +24,7 @@ public:
FlushMeta(const vespalib::string & name, uint32_t id);
~FlushMeta();
const vespalib::string & getName() const { return _name; }
- vespalib::system_time getStart() const { return vespalib::system_clock::now() - elapsed(); }
+ vespalib::system_time getStart() const { return vespalib::system_clock::now() - std::chrono::duration_cast<vespalib::system_time::duration>(elapsed()); }
vespalib::duration elapsed() const { return _timer.elapsed(); }
uint32_t getId() const { return _id; }
bool operator < (const FlushMeta & rhs) const { return _id < rhs._id; }