update tf with lossy and print up/down stats every 15s

This commit is contained in:
2023-01-17 19:34:36 +01:00
parent 83dcf2af82
commit 92dcc81731
4 changed files with 31 additions and 2 deletions

View File

@@ -61,6 +61,12 @@ struct SHA1 final : public StateI {
const std::vector<uint8_t> _sha1_info_data;
const SHA1Digest _sha1_info_hash;
float _io_log_timer {0.f};
size_t _bytes_up {0};
size_t _bytes_up_last_log {0};
size_t _bytes_down {0};
size_t _bytes_down_last_log {0};
// index is the same as for info
std::vector<bool> _have_chunk;
bool _have_all {false};