[freeside-commits] freeside/FS/FS cust_svc.pm,1.84.2.1,1.84.2.2
Ivan,,,
ivan at wavetail.420.am
Sun Jan 16 12:20:26 PST 2011
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv16195
Modified Files:
Tag: FREESIDE_2_1_BRANCH
cust_svc.pm
Log Message:
internal session db deprecated (or at least on hold), RT#11217
Index: cust_svc.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_svc.pm,v
retrieving revision 1.84.2.1
retrieving revision 1.84.2.2
diff -u -w -d -r1.84.2.1 -r1.84.2.2
--- cust_svc.pm 8 Jan 2011 05:23:06 -0000 1.84.2.1
+++ cust_svc.pm 16 Jan 2011 20:20:24 -0000 1.84.2.2
@@ -468,18 +468,20 @@
=cut
-#note: implementation here, POD in FS::svc_acct
-sub seconds_since {
- my($self, $since) = @_;
- my $dbh = dbh;
- my $sth = $dbh->prepare(' SELECT SUM(logout-login) FROM session
- WHERE svcnum = ?
- AND login >= ?
- AND logout IS NOT NULL'
- ) or die $dbh->errstr;
- $sth->execute($self->svcnum, $since) or die $sth->errstr;
- $sth->fetchrow_arrayref->[0];
-}
+#internal session db deprecated (or at least on hold)
+sub seconds_since { 'internal session db deprecated'; };
+##note: implementation here, POD in FS::svc_acct
+#sub seconds_since {
+# my($self, $since) = @_;
+# my $dbh = dbh;
+# my $sth = $dbh->prepare(' SELECT SUM(logout-login) FROM session
+# WHERE svcnum = ?
+# AND login >= ?
+# AND logout IS NOT NULL'
+# ) or die $dbh->errstr;
+# $sth->execute($self->svcnum, $since) or die $sth->errstr;
+# $sth->fetchrow_arrayref->[0];
+#}
=item seconds_since_sqlradacct TIMESTAMP_START TIMESTAMP_END
More information about the freeside-commits
mailing list