fix: corrected time conversion on alarm/sleep syscall
[lunaix-os.git] / lunaix-os / kernel / time / clock.c
index 726e333b87d14f57a0db2db08310afc551c4b207..2dc4e8153359fc91c3137db86021b1bd86b457ee 100644 (file)
@@ -69,7 +69,7 @@ time_t
 clock_systime()
 {
     ticks_t t = hwtimer_current_systicks();
 clock_systime()
 {
     ticks_t t = hwtimer_current_systicks();
-    return t / hwtimer_base_frequency();
+    return t / current_timer->running_freq;
 }
 
 void
 }
 
 void