mirror of https://github.com/schoebel/mars
light: enforce contiguity of logrotate numbers
This commit is contained in:
parent
79f0f28ef7
commit
62a3d791d1
|
@ -2407,6 +2407,7 @@ void _rotate_trans(struct mars_rotate *rot)
|
|||
// try to setup new log
|
||||
if (log_nr == trans_brick->new_input_nr &&
|
||||
rot->next_relevant_log &&
|
||||
rot->next_relevant_log->d_serial == trans_brick->inputs[log_nr]->inf.inf_sequence + 1 &&
|
||||
(next_nr = _get_free_input(trans_brick)) >= 0) {
|
||||
struct trans_logger_input *trans_input;
|
||||
int status;
|
||||
|
|
Loading…
Reference in New Issue