projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd61904
)
fix dates on aradial usage import, RT#29053
author
Ivan Kohler
<ivan@freeside.biz>
Sun, 2 Nov 2014 19:10:36 +0000
(11:10 -0800)
committer
Ivan Kohler
<ivan@freeside.biz>
Sun, 2 Nov 2014 19:10:36 +0000
(11:10 -0800)
bin/aradial-sftp_and_import
patch
|
blob
|
history
diff --git
a/bin/aradial-sftp_and_import
b/bin/aradial-sftp_and_import
index
0cb6bca
..
5335703
100755
(executable)
--- 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;