summaryrefslogtreecommitdiff
path: root/src/RpcMethodImpl.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2015-06-21 15:17:00 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2015-06-21 15:30:02 +0900
commit0b48bb1dbd048c7e5232f457a52838155c085d60 (patch)
tree44a9cdb109623923501ac190b0ac5f47839f2fe0 /src/RpcMethodImpl.cc
parentdd277b33af2a5a58c39142097c3ede5df7f5655d (diff)
Use user-defined literals for time units
Diffstat (limited to 'src/RpcMethodImpl.cc')
-rw-r--r--src/RpcMethodImpl.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/RpcMethodImpl.cc b/src/RpcMethodImpl.cc
index cdd51375..f8a043b1 100644
--- a/src/RpcMethodImpl.cc
+++ b/src/RpcMethodImpl.cc
@@ -1306,8 +1306,8 @@ std::unique_ptr<ValueBase> goingShutdown
{
// Schedule shutdown after 3seconds to give time to client to
// receive RPC response.
- e->addRoutineCommand(make_unique<TimedHaltCommand>(
- e->newCUID(), e, std::chrono::seconds(3), forceHalt));
+ e->addRoutineCommand(
+ make_unique<TimedHaltCommand>(e->newCUID(), e, 3_s, forceHalt));
A2_LOG_INFO("Scheduled shutdown in 3 seconds.");
return createOKResponse();
}