projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0d61470
)
sqlradius time calculation fix wrt open sessions
author
ivan
<ivan>
Tue, 17 Dec 2002 10:36:39 +0000
(10:36 +0000)
committer
ivan
<ivan>
Tue, 17 Dec 2002 10:36:39 +0000
(10:36 +0000)
FS/FS/cust_svc.pm
patch
|
blob
|
history
diff --git
a/FS/FS/cust_svc.pm
b/FS/FS/cust_svc.pm
index
8bcb0fc
..
66daec1
100644
(file)
--- a/
FS/FS/cust_svc.pm
+++ b/
FS/FS/cust_svc.pm
@@
-394,11
+394,12
@@
sub seconds_since_sqlradacct {
FROM radacct
WHERE UserName = ?
AND $str2time AcctStartTime ) >= ?
FROM radacct
WHERE UserName = ?
AND $str2time AcctStartTime ) >= ?
+ AND $str2time AcctStartTime ) < ?
AND ( ? - $str2time AcctStartTime ) ) < 86400
AND ( $str2time AcctStopTime ) = 0
OR AcctStopTime IS NULL )";
$sth = $dbh->prepare($query) or die $dbh->errstr;
AND ( ? - $str2time AcctStartTime ) ) < 86400
AND ( $str2time AcctStopTime ) = 0
OR AcctStopTime IS NULL )";
$sth = $dbh->prepare($query) or die $dbh->errstr;
- $sth->execute($end, $username, $start, $end)
+ $sth->execute($end, $username, $start, $end
, $end
)
or die $sth->errstr. " executing query $query";
my $start_during = $sth->fetchrow_arrayref->[0];
or die $sth->errstr. " executing query $query";
my $start_during = $sth->fetchrow_arrayref->[0];