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 /Kernel | |
parent | a7d5e9781af3735a56d3e9665fd5a1026258c932 (diff) | |
download | serenity-ce7c302933be69e5937f9cac5cf79385d5434a02.zip |
Kernel: Oops, gettimeofday()'s tv_usec should be micro, not milliseconds.
Diffstat (limited to 'Kernel')
-rw-r--r-- | Kernel/Process.cpp | 2 |
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; } |