1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:17:44 +00:00

Kernel: Oops, gettimeofday()'s tv_usec should be micro, not milliseconds.

This commit is contained in:
Andreas Kling 2019-03-13 03:25:18 +01:00
parent a7d5e9781a
commit ce7c302933
3 changed files with 3 additions and 3 deletions

View file

@ -373,7 +373,7 @@ void GEventLoop::EventLoopTimer::reload()
{
gettimeofday(&fire_time, nullptr);
fire_time.tv_sec += interval / 1000;
fire_time.tv_usec += interval % 1000;
fire_time.tv_usec += (interval % 1000) * 1000;
}
void GEventLoop::get_next_timer_expiration(timeval& soonest)