]> git.proxmox.com Git - pve-guest-common.git/commit
print snapshot tree: clamp indentation length to positive
authorDominik Csapak <d.csapak@proxmox.com>
Mon, 28 Feb 2022 14:46:46 +0000 (15:46 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 1 Mar 2022 11:59:38 +0000 (12:59 +0100)
commit9fca8f9d5ec210c0215f5990ca4ba4cf3615fa8e
treeed9d83cd1fe61f3173992ec7877209679b549293
parent6a5f25ee191c815b4ec697a1f91b2713c2447eda
print snapshot tree: clamp indentation length to positive

If a user has many snapshots, the length heuristic can go negative
and produce wrong indentation, so clamp it at 0.

Reported in the forum: https://forum.proxmox.com/threads/105740/

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/GuestHelpers.pm