diff options
Diffstat (limited to '')
-rw-r--r-- | ircxmpp.c | 4 | ||||
-rw-r--r-- | ircxmpp.conf | 4 |
2 files changed, 4 insertions, 4 deletions
@@ -70,7 +70,7 @@ static void free_bridge (struct bridge * bridge, const char * razlog) { if (bridge->conn) xmpp_conn_release(bridge->conn); // graceful disconnect, what is that? if (strcmp(razlog, "free_bridge_from_tdestroy")) - tdelete(bridge, bridge->ircxmpp->bridges, bridge_compare); + tdelete(bridge, &bridge->ircxmpp->bridges, bridge_compare); free(bridge->identifier); for (size_t i = 0; i < bridge->messages_length; i++) free(bridge->messages[i]); @@ -775,7 +775,7 @@ int main (void) { ircxmpp_run_once(handles[i]); struct timespec ts = { .tv_sec = 0, - .tv_nsec = getenv("IX_LOOPDELAY") ? atoi(getenv("IX_LOOPDELAY"))/1000 : 1e8 + .tv_nsec = getenv("IX_LOOPDELAY") ? atoi(getenv("IX_LOOPDELAY"))/1000 : 1e7 }; nanosleep(&ts, NULL); } diff --git a/ircxmpp.conf b/ircxmpp.conf index ae11eef..d389ba1 100644 --- a/ircxmpp.conf +++ b/ircxmpp.conf @@ -17,8 +17,8 @@ ####################### OPTIONAL VARIABLES ####################### ## set to IRC channel password if channel on IRC is password protected # IX_CHPASS=somepassword -## delay after each event loop cycle in microseconds, defaults to 100ms. -# IX_LOOPDELAY=100000 +## delay after each event loop cycle in microseconds, defaults to 10ms. +# IX_LOOPDELAY=10000 ####################### ANOTHER LINK SETUP ######################## ## As many links as you'd like can be setup. Append a number, starting with 2, to every setting. # IX_JID2=v@lu.e |