From 6b96ee857e366af317ab9dc1b6b4f9c22576e83b Mon Sep 17 00:00:00 2001 From: lichao <lichao@aiotlink.com> Date: 星期四, 20 五月 2021 17:12:34 +0800 Subject: [PATCH] add sleeper, to reduce cpu usage. --- utest/api_test.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/utest/api_test.cpp b/utest/api_test.cpp index e597533..e278e29 100644 --- a/utest/api_test.cpp +++ b/utest/api_test.cpp @@ -372,7 +372,7 @@ threads.Launch(hb, &run); threads.Launch(showStatus, &run); int ncli = 10; - const int64_t nreq = 1; //000 * 100; + const int64_t nreq = 1000 * 100; for (int i = 0; i < 10; ++i) { SyncRequest(i); -- Gitblit v1.8.0