summaryrefslogtreecommitdiff
path: root/LibGUI
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-03-13 03:25:18 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-03-13 03:25:18 +0100
commitce7c302933be69e5937f9cac5cf79385d5434a02 (patch)
treec92d14852d9e2464e5dbc53c01a1c0f6028d3977 /LibGUI
parenta7d5e9781af3735a56d3e9665fd5a1026258c932 (diff)
downloadserenity-ce7c302933be69e5937f9cac5cf79385d5434a02.zip
Kernel: Oops, gettimeofday()'s tv_usec should be micro, not milliseconds.
Diffstat (limited to 'LibGUI')
-rw-r--r--LibGUI/GEventLoop.cpp2
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)