commit | 8a2e56c5dfc41f6946e36234eef4df559286db05 | [log] [tgz] |
---|---|---|
author | Eric Andersen <andersen@codepoet.org> | Thu Sep 21 02:23:30 2000 +0000 |
committer | Eric Andersen <andersen@codepoet.org> | Thu Sep 21 02:23:30 2000 +0000 |
tree | 23a5f54bcbf8aea8f08ae85f8397b7add91bf79f | |
parent | 350b3f9236b29514f3755af2b4b2957475abf829 [diff] [blame] |
Large file >2Gib support.
diff --git a/util-linux/more.c b/util-linux/more.c index 12168b5..45b7c12 100644 --- a/util-linux/more.c +++ b/util-linux/more.c
@@ -123,7 +123,11 @@ lines = 0; len = fprintf(stdout, "--More-- "); if (file != stdin) { +#if _FILE_OFFSET_BITS == 64 + len += fprintf(stdout, "(%d%% of %lld bytes)", +#else len += fprintf(stdout, "(%d%% of %ld bytes)", +#endif (int) (100 * ((double) ftell(file) / (double) st.st_size)),