From e6e15500491d1e3b5bc5b2b1071bc7020625e8bc Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Tue, 1 Mar 2022 13:06:21 +0100 Subject: [PATCH] print snapshot tree: reduce indentation delta per level previous: > `-> foo 2021-05-28 12:59:36 no-description > `-> bar 2021-06-18 12:44:48 no-description > `-> current You are here! now: > `-> foo 2021-05-28 12:59:36 no-description > `-> bar 2021-06-18 12:44:48 no-description > `-> current You are here! So requires less space, allowing deeper snapshot trees to still be displayed nicely, and looks even better while doing that - the latter may be subjective though. Signed-off-by: Thomas Lamprecht --- src/PVE/GuestHelpers.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PVE/GuestHelpers.pm b/src/PVE/GuestHelpers.pm index 0c8ed66..0fe3fd6 100644 --- a/src/PVE/GuestHelpers.pm +++ b/src/PVE/GuestHelpers.pm @@ -161,7 +161,7 @@ sub print_snapshot_tree { printf("%s %-${len}s %-23s %s\n", $prefix, $root, $timestring, $description); if ($e->{children}) { - $prefix = " $prefix"; + $prefix = " $prefix"; foreach my $child (sort $snaptimesort @{$e->{children}}) { $snapshottree_weak->($prefix, $child, $snapshots); }