]> git.etc.gen.nz Git - spong.git/commitdiff
query process' stale data scan was not sleeping between loops
authorStephen L Johnson <sjohnson@monsters.org>
Wed, 14 Nov 2001 17:05:24 +0000 (17:05 +0000)
committerStephen L Johnson <sjohnson@monsters.org>
Wed, 14 Nov 2001 17:05:24 +0000 (17:05 +0000)
src/spong-server.pl

index 944c58d38c366fe8f220d5d75da58dc8cd792883..11d78f153d014454e846818228b6e586ad5faf77 100755 (executable)
@@ -6,7 +6,7 @@
 # There are one or more update processes that listen for status updates 
 # from client programs.
 
-# $Id: spong-server.pl,v 1.46 2001/11/14 17:02:20 sljohnson Exp $
+# $Id: spong-server.pl,v 1.47 2001/11/14 17:05:24 sljohnson Exp $
 
 use lib "@@LIBDIR@@";
 
@@ -442,9 +442,9 @@ sub listen_for_queries {
               }
             }
           }
-          $next_update = $localTimeOut * 60;
+          $next_update = time() + $localTimeOut * 60;
        } else {
-          &debug(time() . " < $next_update");
+          &debug(time() . " < $next_update", 9);
       }