[freeside-commits] branch FREESIDE_3_BRANCH updated. 8dfa2f14821acce6f5c89d447ba49b47339a3d36
Ivan
ivan at 420.am
Sun Nov 2 11:10:40 PST 2014
The branch, FREESIDE_3_BRANCH has been updated
via 8dfa2f14821acce6f5c89d447ba49b47339a3d36 (commit)
from e3efeaeaa661d78fcbf0a257b929db15f7892495 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 8dfa2f14821acce6f5c89d447ba49b47339a3d36
Author: Ivan Kohler <ivan at freeside.biz>
Date: Sun Nov 2 11:10:38 2014 -0800
fix dates on aradial usage import, RT#29053
diff --git a/bin/aradial-sftp_and_import b/bin/aradial-sftp_and_import
index 0cb6bca..5335703 100755
--- a/bin/aradial-sftp_and_import
+++ b/bin/aradial-sftp_and_import
@@ -169,6 +169,7 @@ foreach my $filename ( @$ls ) {
my @extra_values = ();
if ( $hash{'Status-Type'} eq 'Start' ) {
+ push @keys, 'AcctStartTime';
$dbhash{'AcctStartTime'} = $hash{'Date'};
$sql = 'INSERT INTO radacct ( '. join(',', @keys).
@@ -177,6 +178,8 @@ foreach my $filename ( @$ls ) {
} elsif ( $hash{'Status-Type'} eq 'Stop' ) {
my $AcctSessionId = delete($dbhash{AcctSessionId});
+
+ push @keys, 'AcctStopTime';
$dbhash{'AcctStopTime'} = $hash{'Date'};
push @extra_values, $AcctSessionId;
-----------------------------------------------------------------------
Summary of changes:
bin/aradial-sftp_and_import | 3 +++
1 file changed, 3 insertions(+)
More information about the freeside-commits
mailing list