use FS::Record qw( qsearch str2time_sql str2time_sql_closing concat_sql );
use FS::torrus_srvderive;
-our $DEBUG = 0;
+our $DEBUG = 1;
my $user = shift or die &usage;
$FS::Daemon::PID_NEWSTYLE = 1;
AND ABS( $_date - $other_date ) <= 60
)
ORDER BY srv_date, srv_time
- LIMIT 1
+ LIMIT 10
";
while (1) {