summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root>2009-11-26 05:25:35 +0000
committerroot <root>2009-11-26 05:25:35 +0000
commit00c15cbc9a26461a25c5958f61525de59e2fcc6b (patch)
tree444997ca4facc75cdc9901e2bac5bd09db598ed9
parentb4d52ef65f575647849bdb7751a5c94aa49793fc (diff)
*** empty log message ***
-rw-r--r--Changes1
-rw-r--r--eio.c4
2 files changed, 3 insertions, 2 deletions
diff --git a/Changes b/Changes
index 88919c3..c76aab6 100644
--- a/Changes
+++ b/Changes
@@ -16,4 +16,5 @@ TODO: maybe add mincore support? available on at leats darwin, solaris, linux, f
- fixed custom support.
- use a more robust feed-add detection method.
- "outbundled" from IO::AIO.
+ - eio_set_max_polltime did not properly convert time to ticks.
diff --git a/eio.c b/eio.c
index 51ecae0..0bedd2c 100644
--- a/eio.c
+++ b/eio.c
@@ -198,7 +198,7 @@ static void eio_execute (struct etp_worker *self, eio_req *req);
#define ETP_NUM_PRI (ETP_PRI_MAX - ETP_PRI_MIN + 1)
-/* calculcate time difference in ~1/EIO_TICKS of a second */
+/* calculate time difference in ~1/EIO_TICKS of a second */
static int tvdiff (struct timeval *tv1, struct timeval *tv2)
{
return (tv2->tv_sec - tv1->tv_sec ) * EIO_TICKS
@@ -600,7 +600,7 @@ static void etp_submit (ETP_REQ *req)
static void etp_set_max_poll_time (double nseconds)
{
if (WORDACCESS_UNSAFE) X_LOCK (reslock);
- max_poll_time = nseconds;
+ max_poll_time = nseconds * EIO_TICKS;
if (WORDACCESS_UNSAFE) X_UNLOCK (reslock);
}