[pmg-devel] applied: [PATCH pmg-api 1/2] style fixup

Dietmar Maurer dietmar at proxmox.com
Mon Dec 17 12:07:13 CET 2018


applied

> On November 15, 2018 at 10:28 AM Wolfgang Bumiller <w.bumiller at proxmox.com> wrote:
> 
> 
> Signed-off-by: Wolfgang Bumiller <w.bumiller at proxmox.com>
> ---
>  PMG/Statistic.pm | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/PMG/Statistic.pm b/PMG/Statistic.pm
> index bdeac92..ac9473f 100755
> --- a/PMG/Statistic.pm
> +++ b/PMG/Statistic.pm
> @@ -781,15 +781,15 @@ sub postscreen_stat_graph {
>      $sth->execute ();
>  
>      while (my $ref = $sth->fetchrow_hashref()) {
> -	@$res[$ref->{index}] = $ref;
> +	$res->[$ref->{index}] = $ref;
>      }
>  
>      my $c = int (($to - $from) / $span);
>  
> -    for (my $i = 0; $i < $c; $i++) {
> -	@$res[$i] //= { index => $i, rbl_rejects => 0, pregreet_rejects => 0};
> +    for my $i (0..$c) {
> +	$res->[$i] //= { index => $i, rbl_rejects => 0, pregreet_rejects => 0};
>  
> -	my $d = @$res[$i];
> +	my $d = $res->[$i];
>  	$d->{time} = $from + $i*$span - $timezone;
>      }
>      $sth->finish();
> -- 
> 2.11.0
> 
> 
> _______________________________________________
> pmg-devel mailing list
> pmg-devel at pve.proxmox.com
> https://pve.proxmox.com/cgi-bin/mailman/listinfo/pmg-devel



More information about the pmg-devel mailing list