mirror of https://github.com/GOSTSec/sgminer
Browse Source
The old algorithm (msecs * 1000000) - (sec / 1000000000) gets total nsec, including seconds, since the sec/1e9 should be multiplying. It's also vulnerable to easy overflows. Using ldiv gets the quotient and remainder in a single operation (at least on x86) and avoids overflow.nfactor-troky
Luke Dashjr
13 years ago
1 changed files with 4 additions and 2 deletions
Loading…
Reference in new issue