mirror of
git://git.proxmox.com/git/pve-common.git
synced 2025-03-09 12:58:35 +03:00
followup: avoid very long line through comment moval
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
c1d62a9d54
commit
8bc99fda82
@ -1007,8 +1007,8 @@ sub df {
|
|||||||
my $res = eval { run_fork_with_timeout($timeout, $df) } // {};
|
my $res = eval { run_fork_with_timeout($timeout, $df) } // {};
|
||||||
warn $@ if $@;
|
warn $@ if $@;
|
||||||
|
|
||||||
# untaint the values
|
# untaint, but be flexible: PB usage can result in scientific notation
|
||||||
my ($blocks, $used, $bavail) = map { defined($_) ? (/^([\d\.e\-+]+)$/) : 0 } # can be in scientific notation
|
my ($blocks, $used, $bavail) = map { defined($_) ? (/^([\d\.e\-+]+)$/) : 0 }
|
||||||
$res->@{qw(blocks used bavail)};
|
$res->@{qw(blocks used bavail)};
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user