1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-04 20:16:44 +02:00

put file senders in a round-robin queue so multiple transfers upload at a uniform pace

This commit is contained in:
Jfreegman
2014-07-27 21:19:17 -04:00
parent 02708534c0
commit b18a67d656
4 changed files with 54 additions and 32 deletions

View File

@ -45,9 +45,11 @@ typedef struct {
double bps;
uint64_t size;
uint32_t line_id;
uint8_t queue_pos;
} FileSender;
/* creates progress line that will be updated during file transfer. */
/* creates initial progress line that will be updated during file transfer.
Assumes progline is of size MAX_STR_SIZE */
void prep_prog_line(char *progline);
/* prints a progress bar for file transfers.