express size in K (rounding up)

This commit is contained in:
Andy2 2011-05-15 07:37:29 -07:00 committed by Andy2
parent 94f582cdc0
commit 3762fc07d1

View file

@ -26,7 +26,8 @@ do_lang() {
echo "<td>${DECCOUNT}</td>"
SIZE=$(ls -l $DICT | awk '{print $5}')
echo "<td>${SIZE}</td>"
SIZE=$(((SIZE+1024)/1024))
echo "<td>${SIZE}K</td>"
echo "</tr>"
[ -n "$DO_MD5" ] && md5sum $DICT | awk '{print $1}' > $DICT.md5