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