mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
A few improvements in storage-daemon-cli interface (#570)
* Pause and resume upload in storage-daemon * Update help * Update LoadSpeed.cpp * Fix json output, prohibit torrents without files Co-authored-by: SpyCheese <mikle98@yandex.ru> Co-authored-by: Andrey Pfau <andreypfau@ton.org>
This commit is contained in:
parent
1a07edfed4
commit
b88eda83fe
4 changed files with 17 additions and 1 deletions
|
@ -22,7 +22,7 @@
|
|||
#include "td/utils/format.h"
|
||||
|
||||
namespace ton {
|
||||
void LoadSpeed::add(std::size_t size, td::Timestamp now) {
|
||||
void LoadSpeed::add(td::uint64 size, td::Timestamp now) {
|
||||
total_size_ += size;
|
||||
events_.push(Event{size, now});
|
||||
update(now);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue