Show transfer bandwidth.

This commit is contained in:
David Given
2019-03-06 19:44:27 +01:00
parent 58bf460e6d
commit f3640aa153
2 changed files with 4 additions and 1 deletions

View File

@@ -54,7 +54,10 @@ std::unique_ptr<Fluxmap> Track::read()
std::cout << fmt::format("{0:>3}.{1}: ", track, side) << std::flush;
std::unique_ptr<Fluxmap> fluxmap = _fluxReader->readFlux(track, side);
std::cout << fmt::format(
"{0} ms in {1} bytes", int(fluxmap->duration()/1e6), fluxmap->bytes()) << std::endl;
"{0} ms in {1} bytes ({2} kB/s)\n",
int(fluxmap->duration()/1e6),
fluxmap->bytes(),
(int)(1e6 * fluxmap->bytes() / fluxmap->duration()));
if (outdb)
sqlWriteFlux(outdb, track, side, *fluxmap);
return fluxmap;