From: Dominik Csapak Date: Tue, 20 Jun 2017 12:27:23 +0000 (+0200) Subject: change replica log timestamp to a human readable format X-Git-Url: https://git.proxmox.com/?p=pve-guest-common.git;a=commitdiff_plain;h=93c3695b0593397e8c8948e70ab79c91c6cf2793 change replica log timestamp to a human readable format modeled after the timestamps in vm migration this does not impact the regression tests, because they overwrite 'get_log_time' anyway Signed-off-by: Dominik Csapak --- diff --git a/PVE/Replication.pm b/PVE/Replication.pm index 0db427d..5a7274e 100644 --- a/PVE/Replication.pm +++ b/PVE/Replication.pm @@ -5,6 +5,7 @@ use strict; use Data::Dumper; use JSON; use Time::HiRes qw(gettimeofday tv_interval); +use POSIX qw(strftime); use PVE::INotify; use PVE::ProcFSTools; @@ -19,7 +20,7 @@ use PVE::ReplicationState; # regression tests should overwrite this sub get_log_time { - return time(); + return strftime("%F %H:%M:%S", localtime); } # Find common base replication snapshot, available on local and remote side.