mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-22 15:44:45 +00:00
Kernel: Oops, gettimeofday()'s tv_usec should be micro, not milliseconds.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user