aboutsummaryrefslogtreecommitdiff
path: root/src/randomenv.cpp
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2020-12-08 16:49:33 +0100
committerMarcoFalke <falke.marco@gmail.com>2020-12-08 16:47:36 +0100
commitfa11110bff6288f63e0c487e2e4b4079fb0f4569 (patch)
tree3d93598c38ba1b34be157fefb14a38bb24ee940a /src/randomenv.cpp
parent16b31cc4c516cdcaf6d2eb2dd1255cc3e6973ba1 (diff)
downloadbitcoin-fa11110bff6288f63e0c487e2e4b4079fb0f4569.tar.xz
util: Allow use of C++14 chrono literals
Diffstat (limited to 'src/randomenv.cpp')
-rw-r--r--src/randomenv.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/randomenv.cpp b/src/randomenv.cpp
index 5e07c3db40..9248db1539 100644
--- a/src/randomenv.cpp
+++ b/src/randomenv.cpp
@@ -69,7 +69,7 @@ void RandAddSeedPerfmon(CSHA512& hasher)
// This can take up to 2 seconds, so only do it every 10 minutes.
// Initialize last_perfmon to 0 seconds, we don't skip the first call.
- static std::atomic<std::chrono::seconds> last_perfmon{std::chrono::seconds{0}};
+ static std::atomic<std::chrono::seconds> last_perfmon{0s};
auto last_time = last_perfmon.load();
auto current_time = GetTime<std::chrono::seconds>();
if (current_time < last_time + std::chrono::minutes{10}) return;