btrbk: bugfix: minor bug when sorting in schedule()

pull/30/head
Axel Burri 2015-06-10 13:10:45 +02:00
parent eab34c9d68
commit 8a53b3874c
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
btrbk-current
* Bugfix: fix sorting of dates in schedule().
btrbk-0.19.2
* Bugfix: fix crash when using btrfs-progs < 3.17.3 (closes: #24).

2
btrbk
View File

@ -1255,7 +1255,7 @@ sub schedule(@)
my @sorted_schedule = sort { ($a->{date}->[0] <=> $b->{date}->[0]) ||
($a->{date}->[1] <=> $b->{date}->[1]) ||
($a->{date}->[2] <=> $b->{date}->[2]) ||
($a->{date_ext} <=> $a->{date_ext})
($a->{date_ext} <=> $b->{date_ext})
} @$schedule;
# first, do our calendar calculations