diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2021-05-22 16:35:52 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2021-05-22 16:35:52 +0300 |
commit | f2b0abd0cedd23967ad900c39bd372af15c72aca (patch) | |
tree | ec4d56d41deda60e9a2e51c36c8dcafe57f3a542 | |
parent | b33a0303e06e463402863a27cebfd3a19175e8f7 (diff) |
server: fix delay
-rw-r--r-- | src/server/server.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/server.cc b/src/server/server.cc index 8361b19..c464b13 100644 --- a/src/server/server.cc +++ b/src/server/server.cc @@ -132,7 +132,7 @@ std::shared_ptr<p18::response_type::BaseResponse> Server::executeCommand(p18::Co u64 diff = now - endExecutionTime_; if (diff < delay_) - usleep(delay_ - diff); + usleep((delay_ - diff) * 1000); } try { |