mirror of
https://github.com/openharmony/distributedhardware_distributed_input.git
synced 2026-07-19 09:36:05 -04:00
Description:codex
Match-id-2fbbd55ad7440005b6dd1d63565f2964834dcfe4
This commit is contained in:
@@ -88,7 +88,7 @@ namespace DistributedInput {
|
||||
|
||||
constexpr int32_t INPUT_LATENCY_DELAYTIME_US = 50 * 1000;
|
||||
|
||||
constexpr int32_t INPUT_LATENCY_DELAY_TIMES = 60;
|
||||
constexpr uint32_t INPUT_LATENCY_DELAY_TIMES = 60;
|
||||
|
||||
constexpr int32_t SESSION_WAIT_TIMEOUT_SECOND = 5;
|
||||
|
||||
|
||||
@@ -366,7 +366,7 @@ void DistributedInputSourceTransport::StartLatencyCount(const std::string& devic
|
||||
DHLOGI("start");
|
||||
while (isLatencyThreadRunning_.load()) {
|
||||
if (sendNum_ >= INPUT_LATENCY_DELAY_TIMES) {
|
||||
int32_t latency = deltaTimeAll_ / 2 / INPUT_LATENCY_DELAY_TIMES;
|
||||
uint64_t latency = (uint64_t)(deltaTimeAll_ / 2 / INPUT_LATENCY_DELAY_TIMES);
|
||||
DHLOGI("LatencyCount average single-channel latency is %d, send times is %d, recive times is %d,\
|
||||
each RTT latency details is %s", latency, sendNum_, recvNum_, eachLatencyDetails_.c_str());
|
||||
deltaTimeAll_ = 0;
|
||||
|
||||
Reference in New Issue
Block a user