From: Jim Meyering Date: Sun, 25 May 1997 15:10:03 +0000 (+0000) Subject: (convert_blocks): Add definition. X-Git-Tag: SH-UTILS-1_16a~91 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=07876bcb5d236230082e7a1870673d9a9b39c63d;p=thirdparty%2Fcoreutils.git (convert_blocks): Add definition. --- diff --git a/src/ls.c b/src/ls.c index ec051c29d9..eaf968f8a6 100644 --- a/src/ls.c +++ b/src/ls.c @@ -83,6 +83,10 @@ # define longdiff(a, b) ((a) - (b)) #endif +/* Convert B 512-byte blocks to kilobytes if K is nonzero, + otherwise return it unchanged. */ +#define convert_blocks(b, k) ((k) ? ((b) + 1) / 2 : (b)) + /* The maximum number of digits required to print an inode number in an unsigned format. */ #ifndef INODE_DIGITS