1
0
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:
Jfreegman
2014-03-13 23:56:46 -04:00
parent c2d417c78b
commit d29836845c
6 changed files with 35 additions and 19 deletions

View File

@@ -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)) {