dda_queue.c: restart XON/XOFF only if the queue is at least half drained.

This commit is contained in:
Markus Hitter 2010-10-04 00:55:19 +02:00
parent f98772ff25
commit 2fac65d172
1 changed files with 3 additions and 2 deletions

View File

@ -108,7 +108,8 @@ void next_move() {
}
#ifdef XONXOFF
// restart transmission
// restart transmission if the move buffer is only half full
if (((mb_tail - mb_head - 1) & (MOVEBUFFER_SIZE - 1)) > (MOVEBUFFER_SIZE / 2))
xon();
#endif
}