And it turns out that the Windows implementation was returning too early due to rounding error. Fixed.
Attach a file by drag & drop or click to upload