summaryrefslogtreecommitdiffstats
path: root/storage
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2023-02-08 10:45:29 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2023-02-08 10:45:29 +0000
commit6b3ff46c1680dcffaea71f6787d557885f0b0c69 (patch)
tree973bdbe74cb36169271f9ce7b95c9b1c49713927 /storage
parente5010b01ad1581d505482923adbf2f7555341b2b (diff)
Just subtract timestamp directly
Diffstat (limited to 'storage')
-rw-r--r--storage/src/vespa/storage/distributor/pendingclusterstate.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/src/vespa/storage/distributor/pendingclusterstate.cpp b/storage/src/vespa/storage/distributor/pendingclusterstate.cpp
index bea2cef5475..a0607933d37 100644
--- a/storage/src/vespa/storage/distributor/pendingclusterstate.cpp
+++ b/storage/src/vespa/storage/distributor/pendingclusterstate.cpp
@@ -306,7 +306,7 @@ PendingClusterState::getSummary() const
{
return Summary(getPrevClusterStateBundleString(),
getNewClusterStateBundleString(),
- std::chrono::microseconds(vespalib::count_us(_clock.getSystemTime().time_since_epoch()) - _creationTimestamp));
+ _clock.getSystemTime().time_since_epoch() - std::chrono::microseconds(_creationTimestamp));
}
PendingBucketSpaceDbTransition&