btrbk: fixed sort order in table format of run/dryrun actions

pull/57/head
Axel Burri 2015-10-12 16:59:08 +02:00
parent 1ac801c0a6
commit 07f7bfe3a6
1 changed files with 4 additions and 4 deletions

8
btrbk
View File

@ -2986,7 +2986,7 @@ MAIN:
status => $dryrun ? "DRYRUN" : "success", status => $dryrun ? "DRYRUN" : "success",
target_url => $config_subvol->{SNAPSHOT}->{URL}, target_url => $config_subvol->{SNAPSHOT}->{URL},
source_url => $svol->{URL}, source_url => $svol->{URL},
SORT => 10, SORT => 10, # sort order: snapshot, send-receive, target_delete, snapshot_delete
}; };
} }
if($config_subvol->{SUBVOL_DELETED}) { if($config_subvol->{SUBVOL_DELETED}) {
@ -2995,7 +2995,7 @@ MAIN:
push @raw_data, { type => "snapshot_delete", push @raw_data, { type => "snapshot_delete",
status => $dryrun ? "DRYRUN" : "success", status => $dryrun ? "DRYRUN" : "success",
target_url => $_->{URL}, target_url => $_->{URL},
SORT => 30, SORT => 40, # sort order: snapshot, send-receive, target_delete, snapshot_delete
}; };
} }
} }
@ -3013,7 +3013,7 @@ MAIN:
target_url => $_->{received_subvolume}->{URL}, target_url => $_->{received_subvolume}->{URL},
source_url => $_->{snapshot}->{URL}, source_url => $_->{snapshot}->{URL},
parent_url => $_->{parent}->{URL}, parent_url => $_->{parent}->{URL},
SORT => 20, SORT => 20, # sort order: snapshot, send-receive, target_delete, snapshot_delete
}; };
} }
@ -3023,7 +3023,7 @@ MAIN:
push @raw_data, { type => "target_delete", push @raw_data, { type => "target_delete",
status => $dryrun ? "DRYRUN" : "success", status => $dryrun ? "DRYRUN" : "success",
target_url => $_->{URL}, target_url => $_->{URL},
SORT => 40, SORT => 30, # sort order: snapshot, send-receive, target_delete, snapshot_delete
}; };
} }
} }