fix: use instead of 1e6, because 1e6 is a double, thanks
@@ -153,7 +153,7 @@ orka_sleep_ms(const int64_t delay_ms)
{
const struct timespec t = {
.tv_sec = delay_ms / 1000,
- .tv_nsec = (delay_ms % 1000) * 1e6
+ .tv_nsec = (delay_ms % 1000) * 1000000
};
nanosleep(&t, NULL);
@@ -166,7 +166,7 @@ orka_timestamp_ms()
struct timespec t;
clock_gettime(CLOCK_REALTIME, &t);
- return t.tv_sec*1000 + t.tv_nsec/1e6;
+ return t.tv_sec*1000 + t.tv_nsec/1000000;
}
void
