From 8bc99fda8291b5b7591db2161a09a7c3a7869e51 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Tue, 12 Nov 2019 14:16:01 +0100 Subject: [PATCH] followup: avoid very long line through comment moval Signed-off-by: Thomas Lamprecht --- src/PVE/Tools.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PVE/Tools.pm b/src/PVE/Tools.pm index 89de4ec..db4cdf7 100644 --- a/src/PVE/Tools.pm +++ b/src/PVE/Tools.pm @@ -1007,8 +1007,8 @@ sub df { my $res = eval { run_fork_with_timeout($timeout, $df) } // {}; warn $@ if $@; - # untaint the values - my ($blocks, $used, $bavail) = map { defined($_) ? (/^([\d\.e\-+]+)$/) : 0 } # can be in scientific notation + # untaint, but be flexible: PB usage can result in scientific notation + my ($blocks, $used, $bavail) = map { defined($_) ? (/^([\d\.e\-+]+)$/) : 0 } $res->@{qw(blocks used bavail)}; return { -- 2.39.2