mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-14 00:14:11 +09:00
[core,timer] fix reschedule interval
time was calculated in µs instead of ms. @vokov0aa thank you for the hint
This commit is contained in:
@@ -217,7 +217,7 @@ static DWORD WINAPI timer_thread(LPVOID arg)
|
||||
}
|
||||
|
||||
const uint64_t diff = next - now;
|
||||
const uint64_t diffMS = diff / 1000;
|
||||
const uint64_t diffMS = diff / 1000000ull;
|
||||
timeout = INFINITE;
|
||||
if (diffMS < INFINITE)
|
||||
timeout = (uint32_t)diffMS;
|
||||
|
||||
Reference in New Issue
Block a user