mirror of
https://github.com/yuanyuanxiang/SimpleRemoter.git
synced 2026-01-29 18:53:10 +08:00
Fix: #292 RTT display showing 0 or 1 instead of actual milliseconds
- Convert srtt from seconds to milliseconds before sending in Heartbeat (srtt is stored in seconds but Ping field expects milliseconds) - Add input validation in RttEstimator::update_from_sample to filter abnormal RTT values (<=0 or >30000ms)
This commit is contained in:
@@ -1008,7 +1008,7 @@ int AuthKernelManager::SendHeartbeat()
|
||||
|
||||
ActivityWindow checker;
|
||||
auto s = checker.Check();
|
||||
Heartbeat a(s, m_nNetPing.srtt);
|
||||
Heartbeat a(s, (int)(m_nNetPing.srtt * 1000)); // srtt是秒,转为毫秒
|
||||
a.HasSoftware = SoftwareCheck(m_settings.DetectSoftware);
|
||||
|
||||
iniFile THIS_CFG;
|
||||
|
||||
Reference in New Issue
Block a user