aboutsummaryrefslogtreecommitdiff
path: root/more.c
diff options
context:
space:
mode:
Diffstat (limited to 'more.c')
-rw-r--r--more.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/more.c b/more.c
index 12168b519..45b7c1274 100644
--- a/more.c
+++ b/more.c
@@ -123,7 +123,11 @@ extern int more_main(int argc, char **argv)
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)),