diff options
author | Ivan Kohler <ivan@freeside.biz> | 2014-11-02 11:10:36 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2014-11-02 11:10:36 -0800 |
commit | cbcd29b65e7899f487e962a301435a32dba001e2 (patch) | |
tree | 7d0037c2796e0fa49db3ac02363c80e5e89c4890 /bin/aradial-sftp_and_import | |
parent | bd619048c12c9df799ebdf1e571da79bf89513c0 (diff) |
fix dates on aradial usage import, RT#29053
Diffstat (limited to 'bin/aradial-sftp_and_import')
-rwxr-xr-x | bin/aradial-sftp_and_import | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/aradial-sftp_and_import b/bin/aradial-sftp_and_import index 0cb6bca3a..53357033c 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; |