mirror of
https://github.com/Tha14/toxic.git
synced 2025-12-07 19:46:35 +01:00
get unix time more efficiently
This commit is contained in:
@@ -71,7 +71,7 @@ void do_file_senders(Tox *m)
|
||||
uint8_t filenum = file_senders[i].filenum;
|
||||
int friendnum = file_senders[i].friendnum;
|
||||
FILE *fp = file_senders[i].file;
|
||||
uint64_t current_time = (uint64_t) time(NULL);
|
||||
uint64_t current_time = get_unix_time();
|
||||
|
||||
/* If file transfer has timed out kill transfer and send kill control */
|
||||
if (timed_out(file_senders[i].timestamp, current_time, TIMEOUT_FILESENDER)) {
|
||||
|
||||
Reference in New Issue
Block a user