more efficient

This commit is contained in:
Lanta 2023-09-25 14:51:50 +02:00
parent b23b43e0de
commit 7f07c2bab2
2 changed files with 2 additions and 3 deletions

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'})
}
}