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

index 9ecfbbc..ce47414 100644 (file)
@@ -48,6 +48,7 @@ my $sql = "
     WHERE NOT EXISTS (
                        SELECT 1 FROM srvexport AS other
                          WHERE other.serviceid IN ( $in, $out )
+                           AND srvexport.srv_date = other.srv_date
                            AND ABS( $_date - $other_date ) <= 60
                      )
     ORDER BY srv_date, srv_time