1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-11 07:17:58 +00:00

Quotient/remainder error in ms division.

This commit is contained in:
Con Kolivas 2013-08-19 21:36:00 +10:00
parent fb66e8b7b7
commit 0414bf0960

2
util.c
View File

@ -915,7 +915,7 @@ void ms_to_timespec(struct timespec *spec, int64_t ms)
lldiv_t tvdiv = lldiv(ms, 1000);
spec->tv_sec = tvdiv.quot;
spec->tv_nsec = tvdiv.quot * 1000000;
spec->tv_nsec = tvdiv.rem * 1000000;
}
void timeraddspec(struct timespec *a, const struct timespec *b)