X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Frconn.c;h=71198ea76e786d5e31a52b44e06302bab539e439;hb=3223e977cae4125b24ebb9498e0b67b4d8fac4c3;hp=ea45134fea3bcaf02ec4a34a12abe104a530b9af;hpb=5f55c39b21e69025045437ffbd3bb98fe6ce2e89;p=openvswitch diff --git a/lib/rconn.c b/lib/rconn.c index ea45134f..71198ea7 100644 --- a/lib/rconn.c +++ b/lib/rconn.c @@ -500,9 +500,8 @@ rconn_run_wait(struct rconn *rc) timeo = timeout(rc); if (timeo != UINT_MAX) { - unsigned int expires = sat_add(rc->state_entered, timeo); - unsigned int remaining = sat_sub(expires, time_now()); - poll_timer_wait(sat_mul(remaining, 1000)); + long long int expires = sat_add(rc->state_entered, timeo); + poll_timer_wait_until(expires * 1000); } if ((rc->state & (S_ACTIVE | S_IDLE)) && rc->txq.n) {