btrbk: bugfix: print correct time in end_transaction()

pull/180/head
Axel Burri 2017-08-28 17:54:17 +02:00
parent b1f3936826
commit 6acea6a08d
2 changed files with 2 additions and 1 deletions

View File

@ -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

2
btrbk
View File

@ -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;
}