DO open a database connection in the parent process, this cached the $dbdef and speed...
[freeside.git] / FS / bin / freeside-sqlradius-seconds
index a61e977..1c978fa 100644 (file)
@@ -12,7 +12,7 @@ adminsuidsetup( $fs_user );
 my $target_user = shift or die &usage;
 my $start = shift or die &usage;
 $start = str2time($start);
-my $stop =  scalar(@_) ? str2time(shift) : time;
+my $stop =  scalar(@ARGV) ? str2time(shift) : time;
 
 my $svc_acct = qsearchs( 'svc_acct', { 'username' => $target_user } );
 die "username $target_user not found\n" unless $svc_acct;