summaryrefslogtreecommitdiff
path: root/Kernel
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 /Kernel
parenta7d5e9781af3735a56d3e9665fd5a1026258c932 (diff)
downloadserenity-ce7c302933be69e5937f9cac5cf79385d5434a02.zip
Kernel: Oops, gettimeofday()'s tv_usec should be micro, not milliseconds.
Diffstat (limited to 'Kernel')
-rw-r--r--Kernel/Process.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Process.cpp b/Kernel/Process.cpp
index 7b50ca2750..f13d17505e 100644
--- a/Kernel/Process.cpp
+++ b/Kernel/Process.cpp
@@ -1595,7 +1595,7 @@ int Process::sys$gettimeofday(timeval* tv)
return -EFAULT;
auto now = RTC::now();
tv->tv_sec = now;
- tv->tv_usec = PIT::ticks_since_boot() % 1000;
+ tv->tv_usec = (PIT::ticks_since_boot() % 1000) * 1000;
return 0;
}