diff options
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; |