diff options
author | Andy Schwerin <schwerin@mongodb.com> | 2016-05-09 10:31:40 -0400 |
---|---|---|
committer | Andy Schwerin <schwerin@mongodb.com> | 2016-05-17 11:11:57 -0400 |
commit | 73a042328a539b51b3bf35efc16ec3245381dc40 (patch) | |
tree | 650b8de13315f5bdb94626e51c445fed7f41152e /src/mongo/util/net/ssl_expiration.cpp | |
parent | 11e82fe19c81bd1a5d350a219c3a000e959b6dd6 (diff) | |
download | mongo-73a042328a539b51b3bf35efc16ec3245381dc40.tar.gz |
SERVER-24104 Replace direct uses of stdx::chrono::durations with MongoDB duration using decls.
This is a preliminary step for switching from stdx::chrono::duration to mongo::Duration.
Diffstat (limited to 'src/mongo/util/net/ssl_expiration.cpp')
-rw-r--r-- | src/mongo/util/net/ssl_expiration.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mongo/util/net/ssl_expiration.cpp b/src/mongo/util/net/ssl_expiration.cpp index 110568e272f..98a8b51d8ad 100644 --- a/src/mongo/util/net/ssl_expiration.cpp +++ b/src/mongo/util/net/ssl_expiration.cpp @@ -36,7 +36,7 @@ namespace mongo { -static const auto oneDay = stdx::chrono::hours(24); +static const auto oneDay = Hours(24); CertificateExpirationMonitor::CertificateExpirationMonitor(Date_t date) : _certExpiration(date), _lastCheckTime(Date_t::now()) {} @@ -66,8 +66,7 @@ void CertificateExpirationMonitor::taskDoWork() { if (remainingValidDuration <= 30 * oneDay) { // The certificate will expire in the next 30 days. warning() << "Server certificate will expire on " << dateToISOStringUTC(_certExpiration) - << " in " << durationCount<stdx::chrono::hours>(remainingValidDuration) / 24 - << " days."; + << " in " << durationCount<Hours>(remainingValidDuration) / 24 << " days."; } } |