From 8b59c46e1e70901cb8f313239ef8672ba5c92bf8 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Mon, 6 Jul 2015 01:13:36 +0200 Subject: reproducible coreboot/openwrt/netbsd: try to be even more sensible when displaying file sizes --- bin/reproducible_common.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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" -- cgit v1.2.3-70-g09d2