1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-11-26 16:03:27 +01:00

remove useless var

This commit is contained in:
quininer 2015-12-21 20:00:48 +08:00
parent b34b51e8c1
commit 4419be36e8

View File

@ -1308,9 +1308,6 @@ int main(int argc, char **argv)
execute(prompt->chatwin->history, prompt, m, avatarstr, GLOBAL_COMMAND_MODE); execute(prompt->chatwin->history, prompt, m, avatarstr, GLOBAL_COMMAND_MODE);
uint64_t last_save = (uint64_t) time(NULL); uint64_t last_save = (uint64_t) time(NULL);
uint64_t looptimer = last_save;
useconds_t msleepval = 40000;
uint64_t loopcount = 0;
while (true) { while (true) {
do_toxic(m, prompt); do_toxic(m, prompt);
@ -1326,8 +1323,7 @@ int main(int argc, char **argv)
last_save = cur_time; last_save = cur_time;
} }
msleepval = tox_iteration_interval(m); usleep(tox_iteration_interval(m));
usleep(msleepval);
} }
return 0; return 0;