[freeside-commits] freeside/FS/bin freeside-queued, 1.35.2.4, 1.35.2.5
Ivan,,,
ivan at wavetail.420.am
Mon Dec 28 16:38:13 PST 2009
Update of /home/cvs/cvsroot/freeside/FS/bin
In directory wavetail.420.am:/tmp/cvs-serv25918/bin
Modified Files:
Tag: FREESIDE_1_7_BRANCH
freeside-queued
Log Message:
add queued-sleep_time
Index: freeside-queued
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/bin/freeside-queued,v
retrieving revision 1.35.2.4
retrieving revision 1.35.2.5
diff -u -d -r1.35.2.4 -r1.35.2.5
--- freeside-queued 26 Apr 2009 23:19:24 -0000 1.35.2.4
+++ freeside-queued 29 Dec 2009 00:38:11 -0000 1.35.2.5
@@ -1,7 +1,7 @@
#!/usr/bin/perl -w
use strict;
-use vars qw( $DEBUG $kids $max_kids %kids );
+use vars qw( $DEBUG $kids $max_kids $sleep_time %kids );
use POSIX qw(:sys_wait_h);
use IO::File;
use FS::UID qw(adminsuidsetup forksuidsetup driver_name dbh myconnect);
@@ -49,6 +49,7 @@
my $conf = new FS::Conf;
$max_kids = $conf->config('queued-max_kids') || 10;
+$sleep_time = $conf->config('queued-sleep_time') || 10;
my $warnkids=0;
while (1) {
@@ -108,7 +109,7 @@
undef $FS::UID::dbh;
next;
};
- sleep 1;
+ sleep $sleep_time;
next;
}
More information about the freeside-commits
mailing list