bug fix in timeout config

This commit is contained in:
Robert Johansson 2013-08-30 00:20:35 +09:00
parent fd5c9adffb
commit 654905a94d

View File

@ -160,7 +160,7 @@ mbus_tcp_send_frame(mbus_handle *handle, mbus_frame *frame)
// call the send event function, if the callback function is registered // call the send event function, if the callback function is registered
// //
if (_mbus_send_event) if (_mbus_send_event)
_mbus_send_event(MBUS_HANDLE_TYPE_TCP, buff, len); _mbus_send_event(MBUS_HANDLE_TYPE_TCP, buff, len);
} }
else else
{ {
@ -258,7 +258,7 @@ mbus_tcp_set_timeout_set(double seconds)
} }
tcp_timeout_sec = (int)seconds; tcp_timeout_sec = (int)seconds;
tcp_timeout_sec = (seconds - tcp_timeout_sec) * 1000000; tcp_timeout_usec = (seconds - tcp_timeout_sec) * 1000000;
return 0; return 0;
} }