summaryrefslogtreecommitdiff
path: root/FS/bin
diff options
context:
space:
mode:
authorivan <ivan>2011-04-24 23:26:45 +0000
committerivan <ivan>2011-04-24 23:26:45 +0000
commit6dcdca7cc0f9bcda9b8f1217114c28c2894386a5 (patch)
treef5c5f1e8cb07e980e12fa500f55ca61eba97de67 /FS/bin
parent867d4f2ed3127ec20548911b79017668b771331c (diff)
i hate mysql
Diffstat (limited to 'FS/bin')
-rw-r--r--FS/bin/freeside-torrus-srvderive5
1 files changed, 3 insertions, 2 deletions
diff --git a/FS/bin/freeside-torrus-srvderive b/FS/bin/freeside-torrus-srvderive
index 3985601..e8626e1 100644
--- a/FS/bin/freeside-torrus-srvderive
+++ b/FS/bin/freeside-torrus-srvderive
@@ -11,7 +11,8 @@ use FS::Record qw( qsearch str2time_sql str2time_sql_closing concat_sql );
use FS::torrus_srvderive;
our $DEBUG = 2;
-our $max_kids = 3;
+our $max_kids = 6;
+our $search_timeout = 30*60; # 15*60 5*60; #$torrus_srvderive->last_srv_date ? 5*60 : 15*60);
our %kids;
my $user = shift or die &usage;
@@ -149,7 +150,7 @@ while (1) {
eval {
my $h = set_sig_handler( 'ALRM', sub { die "_timeout\n"; } );
- alarm(15*60); #5*60); #$torrus_srvderive->last_srv_date ? 5*60 : 15*60);
+ alarm($search_timeout);
$sth->execute($serviceid, $serviceid) or die $sth->errstr;
alarm(0);
};