diff options
author | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2011-10-24 12:22:08 +0200 |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2011-10-24 12:24:59 +0200 |
commit | 5ca840f4bd9173ea127261a9fcde329031e5b125 (patch) | |
tree | 6f9aee2ddae75acab34785fc2ea4796324a3e4c7 | |
parent | 81d69bec2c0c9b085554312833d460467abda33f (diff) | |
download | qtrepotools-5ca840f4bd9173ea127261a9fcde329031e5b125.tar.gz |
it's MiB, not MeB
-rwxr-xr-x | git-hooks/sanitize-commit | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/git-hooks/sanitize-commit b/git-hooks/sanitize-commit index 935ab76..148ede9 100755 --- a/git-hooks/sanitize-commit +++ b/git-hooks/sanitize-commit @@ -188,7 +188,7 @@ sub formatSize($) { my $sz = shift; if ($sz >= 10 * 1024 * 1024) { - return int($sz / (1024 * 1024))."MeB"; + return int($sz / (1024 * 1024))."MiB"; } elsif ($sz >= 10 * 1024) { return int($sz / 1024)."KiB"; } else { @@ -337,7 +337,7 @@ while (<DIFF>) { } } else { if (!defined($cfg{giant}) && $size > (2 << 20)) { - &complain("Changing huge binary file (".formatSize($size)." > 2MeB)", "giant", 1); + &complain("Changing huge binary file (".formatSize($size)." > 2MiB)", "giant", 1); } } next; @@ -362,7 +362,7 @@ while (<DIFF>) { } if ($size > (2 << 20)) { if (!defined($cfg{giant})) { - &complain("Adding huge file (".formatSize($size)." > 2MeB)", "giant", 1); + &complain("Adding huge file (".formatSize($size)." > 2MiB)", "giant", 1); } } elsif ($size > 50000 && !$issrc && !defined($cfg{size})) { &complain("Warning: Adding big file (".formatSize($size)." > 50kB)", "size"); |