X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=contrib%2Fstats%2Fpackinfo.pl;h=f4a7b62cd9f1a397118b95792c04c2f70f910f9e;hb=392f1300911120fbaa4b77c737fe13e205726aca;hp=792673a32538825f10806105f18d7abde7ee7ad0;hpb=237ce836e770e8ead12a14ee4a8170009fa4a40b;p=git.git diff --git a/contrib/stats/packinfo.pl b/contrib/stats/packinfo.pl index 792673a32..f4a7b62cd 100755 --- a/contrib/stats/packinfo.pl +++ b/contrib/stats/packinfo.pl @@ -1,4 +1,4 @@ -#!/bin/perl +#!/usr/bin/perl # # This tool will print vaguely pretty information about a pack. It # expects the output of "git-verify-pack -v" as input on stdin. @@ -93,7 +93,7 @@ my %depths; my @depths; while () { - my ($sha1, $type, $size, $offset, $depth, $parent) = split(/\s+/, $_); + my ($sha1, $type, $size, $space, $offset, $depth, $parent) = split(/\s+/, $_); next unless ($sha1 =~ /^[0-9a-f]{40}$/); $depths{$sha1} = $depth || 0; push(@depths, $depth || 0);