mirror of
https://github.com/davidgiven/fluxengine.git
synced 2025-10-31 11:17:01 -07:00
Show transfer bandwidth.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user