summaryrefslogtreecommitdiffstats
path: root/firmware/target/hosted/kernel-unix.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/hosted/kernel-unix.c')
-rw-r--r--firmware/target/hosted/kernel-unix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/hosted/kernel-unix.c b/firmware/target/hosted/kernel-unix.c
index 1ce4dd8a10..5e9204effd 100644
--- a/firmware/target/hosted/kernel-unix.c
+++ b/firmware/target/hosted/kernel-unix.c
@@ -104,7 +104,7 @@ void tick_start(unsigned int interval_in_ms)
}
#define cycles_to_microseconds(cycles) \
- ((int)((1000000*cycles)/TIMER_FREQ))
+ ((int)((10000*cycles)/(TIMER_FREQ / 100)))
static timer_t timer_tid;