From 7b304aa9dea3f06b204a49144e54644ca541da4f Mon Sep 17 00:00:00 2001 From: MIHIRA Sanpei Yoshiro Date: Sat, 16 Jun 2001 08:59:04 +0000 Subject: use wc command for check file size. slower but more portable than using ls --- www/thumbnail_index/files/patch-ab | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 www/thumbnail_index/files/patch-ab (limited to 'www/thumbnail_index/files') diff --git a/www/thumbnail_index/files/patch-ab b/www/thumbnail_index/files/patch-ab new file mode 100644 index 000000000000..deb32a163ea1 --- /dev/null +++ b/www/thumbnail_index/files/patch-ab @@ -0,0 +1,11 @@ +--- thumbnail_index.orig Tue Aug 11 03:51:55 1998 ++++ thumbnail_index Sat Jun 16 17:56:31 2001 +@@ -248,7 +248,7 @@ + EOF + ) + fi +- kb=`ls -l "$file" | awk '{print int(($4+1023)/1024)}'` ++ kb=`wc -c < "$file" | awk '{print int(($1+1023)/1024)}'` + echo "
$file
${kb}K
" + fi + ;; -- cgit v1.2.3