Permalink
Browse files

Next try to fix issue #71

  • Loading branch information...
1 parent 5dbf1b8 commit 1ae06ffd0977ecab52d0027b6fefaf3677d0475d @muennich committed Oct 31, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 Makefile
  2. +1 −1 main.c
View
@@ -1,4 +1,4 @@
-VERSION = git-20120829
+VERSION = git-20120831
PREFIX = /usr/local
MANPREFIX = $(PREFIX)/share/man
View
2 main.c
@@ -182,9 +182,9 @@ bool check_timeouts(struct timeval *t) {
int i = 0, tdiff, tmin = -1;
struct timeval now;
- gettimeofday(&now, 0);
while (i < ARRLEN(timeouts)) {
if (timeouts[i].active) {
+ gettimeofday(&now, 0);
tdiff = TV_DIFF(&timeouts[i].when, &now);
if (tdiff <= 0) {
timeouts[i].active = false;

0 comments on commit 1ae06ff

Please sign in to comment.