summaryrefslogtreecommitdiff
path: root/kernel/syscalls.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/syscalls.c')
-rw-r--r--kernel/syscalls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/syscalls.c b/kernel/syscalls.c
index 01bc7a5..5bdb76e 100644
--- a/kernel/syscalls.c
+++ b/kernel/syscalls.c
@@ -134,7 +134,7 @@ int syscall_gettimeofday(struct timeval *tv, struct timezone *tz,uint32_t none1,
{
uint64_t t=timer_get_ms();
tv->tv_sec=t/1000+2*3600; // add gmt+2
- tv->tv_usec=0;//t-tv->tv_sec*1000;
+ tv->tv_usec=1000*(t%1000);
}
// tz struct is obsolote