diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2019-08-28 09:44:25 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2019-08-28 09:44:25 +0000 |
commit | 5348c1c5a9e72031f27dcf39d456036a911bcfcd (patch) | |
tree | 915f103194a90357aaadf0f6ebd890c5c0ae78fa /storage | |
parent | 58cfb5e88daf7bed3f5b235325eeae5f81983a21 (diff) |
Unify on fastos::time().
Diffstat (limited to 'storage')
-rw-r--r-- | storage/src/vespa/storage/config/distributorconfiguration.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/storage/src/vespa/storage/config/distributorconfiguration.cpp b/storage/src/vespa/storage/config/distributorconfiguration.cpp index e6d9ce05d3e..d2dd74693c8 100644 --- a/storage/src/vespa/storage/config/distributorconfiguration.cpp +++ b/storage/src/vespa/storage/config/distributorconfiguration.cpp @@ -3,6 +3,7 @@ #include <vespa/document/select/parser.h> #include <vespa/document/select/traversingvisitor.h> #include <vespa/vespalib/util/exceptions.h> +#include <vespa/fastos/timestamp.h> #include <sstream> #include <vespa/log/log.h> @@ -124,7 +125,7 @@ DistributorConfiguration::configure(const vespa::config::content::core::StorDist // Always changes. _lastGarbageCollectionChange = 1; } else if (_garbageCollectionSelection != config.garbagecollection.selectiontoremove) { - _lastGarbageCollectionChange = duration_cast<seconds>(system_clock::now().time_since_epoch()).count(); + _lastGarbageCollectionChange = fastos::time(); } _garbageCollectionSelection = config.garbagecollection.selectiontoremove; |