mirror: fixed transferred bytes counting