Make nanoseconds_t a double to prevent overflow on very large numbers of

revolutions (I've just seen a flux file with 50).
This commit is contained in:
David Given
2020-06-26 14:47:25 +02:00
parent a1ed4a9171
commit 984cdaeb03
3 changed files with 4 additions and 4 deletions

View File

@@ -107,7 +107,7 @@ void Track::readFluxmap()
fluxmap = fluxsource->readFlux(physicalTrack, physicalSide);
std::cout << fmt::format(
"{0} ms in {1} bytes\n",
int(fluxmap->duration()/1e6),
fluxmap->duration()/1e6,
fluxmap->bytes());
if (outputFluxSink)
outputFluxSink->writeFlux(physicalTrack, physicalSide, *fluxmap);