1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-04 13:36:45 +02:00

don't excessively update percentage complete line during file transfers

This commit is contained in:
Jfreegman
2014-06-30 14:15:24 -04:00
parent 44d524134f
commit a126f9c1a6
4 changed files with 20 additions and 11 deletions

View File

@ -34,13 +34,14 @@ struct FileReceiver {
FILE *files[MAX_FILES];
bool pending[MAX_FILES];
uint64_t size[MAX_FILES];
uint64_t last_progress[MAX_FILES];
uint32_t line_id[MAX_FILES];
};
struct LastOnline {
uint64_t last_on;
struct tm tm;
uint8_t hour_min_str[TIME_STR_SIZE]; /* holds 12-hour time string e.g. "10:43 PM" */
uint8_t hour_min_str[TIME_STR_SIZE]; /* holds 12/24-hour time string e.g. "10:43 PM" */
};
typedef struct {