add start of torrus srvderive daemon, RT#10574
authorivan <ivan>
Sun, 27 Feb 2011 19:27:56 +0000 (19:27 +0000)
committerivan <ivan>
Sun, 27 Feb 2011 19:27:56 +0000 (19:27 +0000)
FS/bin/freeside-torrus-srvderive

index c9ce1e7..f25ba40 100644 (file)
@@ -40,7 +40,7 @@ my $other_date = concat_sql([ 'other.srv_date', "' '", 'other.srv_time' ]);
 $other_date = "CAST( $other_date AS TIMESTAMP )" if driver_name =~ /^Pg/i;
 $other_date = str2time_sql. $other_date.  str2time_sql_closing;
 
-my $within = ABS( $_date - $other_date ) <= 60;
+my $within = "ABS( $_date - $other_date ) <= 60";
 
 my $in  = concat_sql([ '?', "'_IN'" ]);
 my $out = concat_sql([ '?', "'_OUT'" ]);