diff options
author | Jim Meyering <jim@meyering.net> | 1997-05-25 15:10:03 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1997-05-25 15:10:03 +0000 |
commit | 07876bcb5d236230082e7a1870673d9a9b39c63d (patch) | |
tree | 9affd8a44f09d9c4863ee189ea33b3e6d026c42b /src | |
parent | 11080b754423648ada5719268ff9629f40def611 (diff) | |
download | coreutils-07876bcb5d236230082e7a1870673d9a9b39c63d.tar.xz |
(convert_blocks): Add definition.
Diffstat (limited to 'src')
-rw-r--r-- | src/ls.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |