Skip to content

Commit

Permalink
More stats downloader (#104)
Browse files Browse the repository at this point in the history
* save

* save

* save

* save
  • Loading branch information
AskAlexSharov authored Apr 27, 2022
1 parent d813255 commit cb09f4f
Showing 1 changed file with 19 additions and 9 deletions.
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
}

0 comments on commit cb09f4f

Please sign in to comment.