]> git.proxmox.com Git - pve-storage.git/commitdiff
PVE::ReplicationTools::sync_guest - use integer compare for lastsync
authorDietmar Maurer <dietmar@proxmox.com>
Mon, 8 May 2017 05:36:20 +0000 (07:36 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Mon, 8 May 2017 05:36:20 +0000 (07:36 +0200)
PVE/ReplicationTools.pm

index a979a0b13fedd8274392a0999d91ef6e4f38ebfd..b3fc965a132e9202aae0dd3a5fc28597f5ceb915 100644 (file)
@@ -237,7 +237,7 @@ sub sync_guest {
 
        # delet old snapshot if exists
        cleanup_snapshot($disks_status, $snapname, $storage_config, $running, $ip, $lastsync) if
-           $job->{lastsync} ne '0';
+           $job->{lastsync} != 0;
 
        $job->{lastsync} = $snap_time;
        $job->{state} = "ok";