-
- my $now_depth = $info->{'depth1'} // $info->{'depth'};
- if (defined($prev_depth) && POSIX::floor($now_depth / 10) > POSIX::floor($prev_depth / 10)) {
- my $d = POSIX::floor($now_depth / 10) * 10; # In case we skipped some.
- my $cp = $info->{'score_cp1'} // $info->{'score_cp'};
- my $mate = $info->{'score_mate1'} // $info->{'score_mate'};
- push @{$info->{'lowdepth'}}, [ $d, $cp, $mate ];
- }