summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2021-05-22 16:35:52 +0300
committerEvgeny Zinoviev <me@ch1p.io>2021-05-22 16:35:52 +0300
commitf2b0abd0cedd23967ad900c39bd372af15c72aca (patch)
treeec4d56d41deda60e9a2e51c36c8dcafe57f3a542
parentb33a0303e06e463402863a27cebfd3a19175e8f7 (diff)
server: fix delay
-rw-r--r--src/server/server.cc2
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 {