more efficient #22

Merged
OpzekerIT merged 1 commit from dev into main 2023-09-25 12:52:58 +00:00
2 changed files with 2 additions and 3 deletions

View file

@ -72,6 +72,6 @@
"KD_ALL": 1.3333333333333333
},
{
"updated": "09/25/2023 13:52:33 - Time Zone: W. Europe Standard Time"
"updated": "09/25/2023 14:31:54 - Time Zone: W. Europe Standard Time"
}
]

View file

@ -14,7 +14,6 @@ function get-killstats {
foreach ($action in $telemetry) {
if ($action.PSObject.Properties.name.contains('killer')) {
#write-output "Analyzing dBNOid $($action.dBNOId)"
$attacks += $action
}
@ -50,7 +49,7 @@ foreach ($player in $all_player_matches) {
}
write-output "Analyzing for player $player_name telemetry: $($match.telemetry_url)"
$killstats += get-killstats -player_name $player_name -telemetry $telemetry
$killstats += get-killstats -player_name $player_name -telemetry ($telemetry | where-object {$_._T -eq 'LOGPLAYERKILLV2'})
}
}