diff --git a/Expect.java b/Expect.java index 70ba0b9..ea7ffb4 100644 --- a/Expect.java +++ b/Expect.java @@ -281,7 +281,7 @@ public int expect(int timeout, List list) { long waitTime = endTime - System.currentTimeMillis(); if (restart_timeout_upon_receive) - waitTime = timeout * 1000; + waitTime = (long) (timeout * 1000); if (waitTime <= 0) { log.debug("Timeout when expecting " + list); return RETV_TIMEOUT;