aboutsummaryrefslogtreecommitdiff
path: root/util-linux/more.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2000-09-21 02:23:30 +0000
committerEric Andersen <andersen@codepoet.org>2000-09-21 02:23:30 +0000
commit8a2e56c5dfc41f6946e36234eef4df559286db05 (patch)
tree23a5f54bcbf8aea8f08ae85f8397b7add91bf79f /util-linux/more.c
parent350b3f9236b29514f3755af2b4b2957475abf829 (diff)
downloadbusybox-w32-8a2e56c5dfc41f6946e36234eef4df559286db05.tar.gz
busybox-w32-8a2e56c5dfc41f6946e36234eef4df559286db05.tar.bz2
busybox-w32-8a2e56c5dfc41f6946e36234eef4df559286db05.zip
Large file >2Gib support.
Diffstat (limited to 'util-linux/more.c')
-rw-r--r--util-linux/more.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/util-linux/more.c b/util-linux/more.c
index 12168b519..45b7c1274 100644
--- a/util-linux/more.c
+++ b/util-linux/more.c
@@ -123,7 +123,11 @@ extern int more_main(int argc, char **argv)
123 lines = 0; 123 lines = 0;
124 len = fprintf(stdout, "--More-- "); 124 len = fprintf(stdout, "--More-- ");
125 if (file != stdin) { 125 if (file != stdin) {
126#if _FILE_OFFSET_BITS == 64
127 len += fprintf(stdout, "(%d%% of %lld bytes)",
128#else
126 len += fprintf(stdout, "(%d%% of %ld bytes)", 129 len += fprintf(stdout, "(%d%% of %ld bytes)",
130#endif
127 (int) (100 * 131 (int) (100 *
128 ((double) ftell(file) / 132 ((double) ftell(file) /
129 (double) st.st_size)), 133 (double) st.st_size)),