[pve-devel] [PATCH V4 manager 1/2] Indentation cleanup.

Thomas Lamprecht t.lamprecht at proxmox.com
Tue Dec 12 08:05:25 CET 2017


On 12/07/2017 12:06 PM, Wolfgang Link wrote:
> ---
>  PVE/API2/Replication.pm | 14 +++++++-------
>  1 file changed, 7 insertions(+), 7 deletions(-)
> 
> diff --git a/PVE/API2/Replication.pm b/PVE/API2/Replication.pm
> index f396615d..38449892 100644
> --- a/PVE/API2/Replication.pm
> +++ b/PVE/API2/Replication.pm
> @@ -77,15 +77,15 @@ sub run_jobs {
>      my $iteration = $now // time();
>  
>      my $code = sub {
> -       my $start_time = $now // time();
> +	my $start_time = $now // time();
>  
> -       PVE::ReplicationState::purge_old_states();
> +	PVE::ReplicationState::purge_old_states();
>  
> -       while (my $jobcfg = PVE::ReplicationState::get_next_job($iteration, $start_time)) {
> -           my $guest_class = $lookup_guest_class->($jobcfg->{vmtype});
> -           PVE::Replication::run_replication($guest_class, $jobcfg, $iteration, $start_time, $logfunc, 1, $verbose);
> -           $start_time = $now // time();
> -       }
> +	while (my $jobcfg = PVE::ReplicationState::get_next_job($iteration, $start_time)) {
> +	    my $guest_class = $lookup_guest_class->($jobcfg->{vmtype});
> +	    PVE::Replication::run_replication($guest_class, $jobcfg, $iteration, $start_time, $logfunc, 1, $verbose);
> +	    $start_time = $now // time();
> +	}
>      };
>  
>      my $res = PVE::Tools::lock_file($pvesr_lock_path, 60, $code);
> 


Reviewed-by: Thomas Lamprecht <t.lamprecht at proxmox.com>




More information about the pve-devel mailing list