From 6acea6a08d47a586d83a4f488a95bfb53a01bc76 Mon Sep 17 00:00:00 2001 From: Axel Burri Date: Mon, 28 Aug 2017 17:54:17 +0200 Subject: [PATCH] btrbk: bugfix: print correct time in end_transaction() --- ChangeLog | 1 + btrbk | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 9ed09a5..b168b14 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,7 @@ btrbk-current * Add "snapshot" command (close #150). * Add "--preserve-snapshots" and "--preserve-backups" options. * Bugfix: ssh_filter_btrbk: accept mbuffer command (stream_buffer). + * Bugfix: print correct (end-)time in transaction_log. btrbk-0.25.1 diff --git a/btrbk b/btrbk index 6452907..ba55515 100755 --- a/btrbk +++ b/btrbk @@ -460,7 +460,7 @@ sub end_transaction($$) die("end_transaction() while no transaction is running") unless($current_transaction); foreach (@$current_transaction) { die("end_transaction() has different type") unless($_->{type} eq $type); - action($type, %$_, status => $status, duration => ($dryrun ? undef : ($time - $_->{time}))); + action($type, %$_, status => $status, time => $time, duration => ($dryrun ? undef : ($time - $_->{time}))); } $current_transaction = undef; }