mirror of https://github.com/apache/lucene.git
reduce polling interval error
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1131281 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
5c4cf50847
commit
d7315e5ada
|
@ -111,7 +111,7 @@ while (1) {
|
|||
last if ($maven_available && 0 == $#apache_mirrors);
|
||||
|
||||
my $stop = time();
|
||||
my $sleep_interval = $interval - 2 * ($stop - $start);
|
||||
my $sleep_interval = $interval - ($stop - $start);
|
||||
sleep($interval) if ($sleep_interval > 0);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue