diff --git a/mythtv/libs/libmythtv/recorders/dvbchannel.cpp b/mythtv/libs/libmythtv/recorders/dvbchannel.cpp
index a21d35df3f..c58da18314 100644
a
|
b
|
static void drain_dvb_events(int fd) |
1494 | 1494 | */ |
1495 | 1495 | static bool wait_for_backend(int fd, int timeout_ms) |
1496 | 1496 | { |
1497 | | struct timeval select_timeout = { 0, (timeout_ms % 1000) * 1000 /*usec*/}; |
| 1497 | struct timeval select_timeout = { timeout_ms/1000, (timeout_ms % 1000) * 1000 /*usec*/}; |
1498 | 1498 | fd_set fd_select_set; |
1499 | 1499 | FD_ZERO( &fd_select_set); |
1500 | 1500 | FD_SET (fd, &fd_select_set); |