mirror of
git://git.proxmox.com/git/pve-common.git
synced 2025-03-08 08:58:43 +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) } // {};
|
||||
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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user