diff options
Diffstat (limited to 'more.c')
-rw-r--r-- | more.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -124,13 +124,13 @@ extern int more_main(int argc, char **argv) | |||
124 | if (file != stdin) { | 124 | if (file != stdin) { |
125 | #if _FILE_OFFSET_BITS == 64 | 125 | #if _FILE_OFFSET_BITS == 64 |
126 | len += printf("(%d%% of %lld bytes)", | 126 | len += printf("(%d%% of %lld bytes)", |
127 | (int) (100 * ((double) ftell(file) / | ||
128 | (double) st.st_size)), (long long)st.st_size); | ||
127 | #else | 129 | #else |
128 | len += printf("(%d%% of %ld bytes)", | 130 | len += printf("(%d%% of %ld bytes)", |
131 | (int) (100 * ((double) ftell(file) / | ||
132 | (double) st.st_size)), (long)st.st_size); | ||
129 | #endif | 133 | #endif |
130 | (int) (100 * | ||
131 | ((double) ftell(file) / | ||
132 | (double) st.st_size)), | ||
133 | st.st_size); | ||
134 | } | 134 | } |
135 | len += printf("%s", | 135 | len += printf("%s", |
136 | #ifdef BB_FEATURE_USE_TERMIOS | 136 | #ifdef BB_FEATURE_USE_TERMIOS |