changeset 117:da05b766b8c0

Use a shorter timeout, remove usleep() definition because it is not needed.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 25 Oct 2010 01:34:27 +0300
parents 741e45592522
children 9e7f52878725
files nnchat.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/nnchat.c	Sun Oct 24 23:09:42 2010 +0300
+++ b/nnchat.c	Mon Oct 25 01:34:27 2010 +0300
@@ -9,7 +9,6 @@
 #include <string.h>
 #include <errno.h>
 #ifdef __WIN32
-#define usleep(t) Sleep((t) / 1000)
 /* Undefine because both windows.h and curses.h #define it */
 #undef MOUSE_MOVED
 #endif
@@ -19,7 +18,7 @@
 #define SET_MAX_BACKBUF (1024)
 #define SET_MAX_HISTORY (16)
 #define SET_DELAY       (15)
-#define SET_DELAY_USEC  (SET_DELAY * 1000)
+#define SET_DELAY_USEC  (SET_DELAY * 250)
 #define SET_KEEPALIVE   (15*60)     /* Ping/keepalive period in seconds */
 
 char *ignoreList[] = {