Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More stats downloader #104

Merged
merged 4 commits into from
Apr 27, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 19 additions & 9 deletions downloader/downloader.proto
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,23 @@ message StatsRequest {
}

message StatsReply {
bool completed = 1;
int32 progress = 2;
int32 peers = 3;
int32 torrents = 4;
uint64 bytesCompleted = 5;
uint64 bytesTotal = 6;
uint64 bytesUploadPerSec = 7;
uint64 bytesDownloadPerSec = 8;
uint64 connections = 9;
// First step on startup - "resolve metadata":
// - understand total amount of data to download
// - ensure all pieces hashes available
// - validate files after crush
// - when all metadata ready - can start download/upload
int32 metadataReady = 1;
int32 filesTotal = 2;

int32 peersTotal = 3;
int32 peersUnique = 4;
uint64 connectionsTotal = 5;

bool completed = 6;
int32 progress = 7;

uint64 bytesCompleted = 8;
uint64 bytesTotal = 9;
uint64 uploadRate = 10; // bytes/sec
uint64 downloadRate = 11; // bytes/sec
}