Next try to fix issue #71

This commit is contained in:
Bert Münnich 2012-10-31 23:24:21 +01:00
parent 5dbf1b8eb9
commit 1ae06ffd09
2 changed files with 2 additions and 2 deletions

View file

@ -1,4 +1,4 @@
VERSION = git-20120829 VERSION = git-20120831
PREFIX = /usr/local PREFIX = /usr/local
MANPREFIX = $(PREFIX)/share/man MANPREFIX = $(PREFIX)/share/man

2
main.c
View file

@ -182,9 +182,9 @@ bool check_timeouts(struct timeval *t) {
int i = 0, tdiff, tmin = -1; int i = 0, tdiff, tmin = -1;
struct timeval now; struct timeval now;
gettimeofday(&now, 0);
while (i < ARRLEN(timeouts)) { while (i < ARRLEN(timeouts)) {
if (timeouts[i].active) { if (timeouts[i].active) {
gettimeofday(&now, 0);
tdiff = TV_DIFF(&timeouts[i].when, &now); tdiff = TV_DIFF(&timeouts[i].when, &now);
if (tdiff <= 0) { if (tdiff <= 0) {
timeouts[i].active = false; timeouts[i].active = false;