aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--host/lib/transport/liberio_zero_copy.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/host/lib/transport/liberio_zero_copy.cpp b/host/lib/transport/liberio_zero_copy.cpp
index ebe509010..fb30f8936 100644
--- a/host/lib/transport/liberio_zero_copy.cpp
+++ b/host/lib/transport/liberio_zero_copy.cpp
@@ -68,7 +68,7 @@ public:
}
}
- sptr get_new(int timeout, size_t &index)
+ sptr get_new(double timeout, size_t &index)
{
_buf = liberio_chan_buf_dequeue(_chan, timeout * USEC);
if (!_buf)
@@ -99,7 +99,7 @@ public:
liberio_chan_buf_enqueue(_chan, _buf);
}
- sptr get_new(int timeout, size_t &index)
+ sptr get_new(double timeout, size_t &index)
{
_buf = liberio_chan_buf_dequeue(_chan, timeout * USEC);
if (!_buf)
@@ -200,7 +200,7 @@ public:
if (_next_recv_buff_index == _num_recv_bufs)
_next_recv_buff_index = 0;
return _mrb_pool[_next_recv_buff_index]->get_new(
- USEC * timeout, _next_recv_buff_index);
+ timeout, _next_recv_buff_index);
}
size_t get_num_recv_frames(void) const