summaryrefslogtreecommitdiff
path: root/src/imlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/imlib.c')
-rw-r--r--src/imlib.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/imlib.c b/src/imlib.c
index 6c40245..099b132 100644
--- a/src/imlib.c
+++ b/src/imlib.c
@@ -825,13 +825,11 @@ void feh_display_status(char stat)
}
if (!(i % 50)) {
- int len;
- char buf[50];
+ int len = gib_list_length(filelist);
+
+ fprintf(stdout, " %5d/%d (%d)\n[%3d%%] ",
+ i, init_len, len, ((int) ((float) i / init_len * 100)));
- len = gib_list_length(filelist);
- snprintf(buf, sizeof(buf),
- " %5d/%d (%d)\n[%3d%%] ", i, init_len, len, ((int) ((float) i / init_len * 100)));
- fprintf(stdout, buf);
} else if ((!(i % 10)) && (!reset_output))
fprintf(stdout, " ");