From 12c86f537081465cd825a9e70b1def24f4bd7191 Mon Sep 17 00:00:00 2001 From: "Kyle J. McKay" Date: Tue, 7 Jul 2020 21:23:32 -0700 Subject: [PATCH] projtool.pl: format bundle sizes with comma separators Signed-off-by: Kyle J. McKay --- toolbox/projtool.pl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/toolbox/projtool.pl b/toolbox/projtool.pl index db70a7d..7a6f49e 100755 --- a/toolbox/projtool.pl +++ b/toolbox/projtool.pl @@ -263,6 +263,9 @@ sub get_clean_project { for (my $i = 0; $i < @bundles; ++$i) { my $secs = $bundles[$i]->[0]; $bundles[$i]->[0] = strftime("%Y-%m-%dT%H:%M:%S%z", localtime($secs)); + my $sz = $bundles[$i]->[2]; + 1 while $sz =~ s/(?<=\d)(\d{3})(?:,|$)/,$1/g; + $bundles[$i]->[2] = $sz; } delete $project->{bundles}; $project->{bundles} = \@bundles if @bundles; -- 2.11.4.GIT