From 0b48bb1dbd048c7e5232f457a52838155c085d60 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sun, 21 Jun 2015 15:17:00 +0900 Subject: Use user-defined literals for time units --- src/HttpServerCommand.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/HttpServerCommand.cc') diff --git a/src/HttpServerCommand.cc b/src/HttpServerCommand.cc index f2fdb137..bab3ab29 100644 --- a/src/HttpServerCommand.cc +++ b/src/HttpServerCommand.cc @@ -253,8 +253,7 @@ bool HttpServerCommand::execute() return true; } } else { - if(timeoutTimer_.difference(global::wallclock()) >= - std::chrono::seconds(30)) { + if(timeoutTimer_.difference(global::wallclock()) >= 30_s) { A2_LOG_INFO("HTTP request timeout."); return true; } else { -- cgit