diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-03-13 03:25:18 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-03-13 03:25:18 +0100 |
commit | ce7c302933be69e5937f9cac5cf79385d5434a02 (patch) | |
tree | c92d14852d9e2464e5dbc53c01a1c0f6028d3977 /LibGUI | |
parent | a7d5e9781af3735a56d3e9665fd5a1026258c932 (diff) | |
download | serenity-ce7c302933be69e5937f9cac5cf79385d5434a02.zip |
Kernel: Oops, gettimeofday()'s tv_usec should be micro, not milliseconds.
Diffstat (limited to 'LibGUI')
-rw-r--r-- | LibGUI/GEventLoop.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/LibGUI/GEventLoop.cpp b/LibGUI/GEventLoop.cpp index 76c7aa3303..aa4428c11e 100644 --- a/LibGUI/GEventLoop.cpp +++ b/LibGUI/GEventLoop.cpp @@ -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) |