summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_common.sh
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-07-06 01:13:36 +0200
committerHolger Levsen <holger@layer-acht.org>2015-07-06 01:13:36 +0200
commit8b59c46e1e70901cb8f313239ef8672ba5c92bf8 (patch)
treede75638916abcaefb603b6dcb165addd87f8e30d /bin/reproducible_common.sh
parentf7f8681167e27567ccaa403076c6883effe5cb1f (diff)
downloadjenkins.debian.net-8b59c46e1e70901cb8f313239ef8672ba5c92bf8.tar.xz
reproducible coreboot/openwrt/netbsd: try to be even more sensible when displaying file sizes
Diffstat (limited to 'bin/reproducible_common.sh')
-rwxr-xr-xbin/reproducible_common.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/reproducible_common.sh b/bin/reproducible_common.sh
index 85ef6bf4..c6ba67ea 100755
--- a/bin/reproducible_common.sh
+++ b/bin/reproducible_common.sh
@@ -414,7 +414,8 @@ call_debbindiff_on_any_file() {
get_filesize() {
local BYTESIZE="$(du -h -b $1 | cut -f1)"
- if [ $BYTESIZE -gt 1048576 ] ; then
+ # numbers below 16384K are understood and more meaningful than 16M...
+ if [ $BYTESIZE -gt 16777216 ] ; then
SIZE="$(echo $BYTESIZE/1048576|bc)M"
elif [ $BYTESIZE -gt 1024 ] ; then
SIZE="$(echo $BYTESIZE/1024|bc)K"