diff --git a/src/PVE/CLIFormatter.pm b/src/PVE/CLIFormatter.pm index dfc3679..2c10318 100644 --- a/src/PVE/CLIFormatter.pm +++ b/src/PVE/CLIFormatter.pm @@ -69,6 +69,9 @@ PVE::JSONSchema::register_renderer( sub render_bytes { my ($value) = @_; + return $value if $value !~ m/^(\d+)$/; + $value = int($1); # untaint for sprintf + my @units = qw(B KiB MiB GiB TiB PiB); my $max_unit = 0;