[freeside-commits] freeside/FS/bin freeside-torrus-srvderive, 1.14, 1.15
Ivan,,,
ivan at wavetail.420.am
Sun Feb 27 11:48:36 PST 2011
Update of /home/cvs/cvsroot/freeside/FS/bin
In directory wavetail.420.am:/tmp/cvs-serv29448/FS/bin
Modified Files:
freeside-torrus-srvderive
Log Message:
add start of torrus srvderive daemon, RT#10574
Index: freeside-torrus-srvderive
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/bin/freeside-torrus-srvderive,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -w -d -r1.14 -r1.15
--- freeside-torrus-srvderive 27 Feb 2011 19:46:11 -0000 1.14
+++ freeside-torrus-srvderive 27 Feb 2011 19:48:33 -0000 1.15
@@ -67,7 +67,6 @@
$sth->execute($serviceid, $serviceid) or die $sth->errstr;
my $prev = 0;
while ( my $row = $sth->fetchrow_arrayref ) {
- $found++;
my( $srv_date, $srv_time ) = @$row;
my $cur = str2time( "$srv_date $srv_time" );
next if $cur-$prev <= 60;
@@ -75,6 +74,7 @@
warn "no $serviceid for $srv_date $srv_time; adding\n"
if $DEBUG;
+ $found++;
my @serviceids = $torrus_srvderive->component_serviceids;
@@ -113,7 +113,7 @@
myexit() if sigterm() || sigint();
- sleep 60; # unless $found;
+ sleep 60 unless $found;
}
sub _shouldrun {
More information about the freeside-commits
mailing list