1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-11-26 22:53:28 +01:00

should fix the high cpu usage issue

This commit is contained in:
Jfreegman 2014-06-26 18:22:10 -04:00
parent da65ba4e8d
commit d881312e3e
2 changed files with 2 additions and 2 deletions

View File

@ -178,4 +178,4 @@ void new_filesender_thread(ToxWindow *self, Tox *m, uint8_t *path, int path_len,
if (pthread_mutex_init(&file_senders[i].lock, NULL) != 0)
exit_toxic_err("failed in new_filesende", FATALERR_MUTEX_INIT);
}
}

View File

@ -628,7 +628,7 @@ int main(int argc, char *argv[])
while (true) {
update_unix_time();
do_toxic(m, prompt);
usleep(10000);
usleep(40000);
}
return 0;