]> git.proxmox.com Git - pve-storage.git/commit
fix nvme wearout parsing
authorDominik Csapak <d.csapak@proxmox.com>
Tue, 14 Apr 2020 14:17:33 +0000 (16:17 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Wed, 15 Apr 2020 10:54:10 +0000 (12:54 +0200)
commitce73713ef7cb65228555ac19fe0bfbd1453adc2b
tree0f521377699180bafb134f47669c431e2059b6f0
parent413862d2cb35b71374ea535b2d302a2322b7e4a6
fix nvme wearout parsing

the '.*' was greedy, also consuming all but one digits of the real percentage

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
switch to \s* instead of .*?, to prevent mis-interpreting potential
strings like '< 50%' or '0-50%'

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
PVE/Diskmanage.pm