commit | 26dfc41335ef47fe765643148ae980be388084ec | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sat Feb 06 18:18:54 2016 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Sat Feb 06 18:18:54 2016 +0100 |
tree | 9b21d85d95cde367e4cf66892eff5e3ce0dd7773 | |
parent | a03f23351588f04276469cd7742b7ec655bb604b [diff] [blame] |
patch 7.4.1268 Problem: Waittime is used as seconds instead of milliseconds. (Hirohito Higashi) Solution: Divide by 1000.
diff --git a/src/channel.c b/src/channel.c index 35875ca..d621798 100644 --- a/src/channel.c +++ b/src/channel.c
@@ -440,8 +440,8 @@ FD_ZERO(&wfds); FD_SET(sd, &rfds); FD_SET(sd, &wfds); - tv.tv_sec = waittime; - tv.tv_usec = 0; + tv.tv_sec = waittime / 1000; + tv.tv_usec = (waittime % 1000) * 1000; ret = select((int)sd+1, &rfds, &wfds, NULL, &tv); if (ret < 0) {