summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/rmd_load_cache.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/rmd_load_cache.c b/src/rmd_load_cache.c
index 303cc3b..5e5b8f7 100644
--- a/src/rmd_load_cache.c
+++ b/src/rmd_load_cache.c
@@ -217,8 +217,12 @@ void *rmdLoadCache(ProgData *pdata)
if (read_header(frame.header, icf)) {
- fprintf(stdout, "\r[%d%%] ",
- ((frame.header->capture_frameno) * 100) / pdata->capture_frameno);
+ if (pdata->capture_frameno)
+ fprintf(stdout, "\r[%d%%] ",
+ ((frame.header->capture_frameno) * 100) / pdata->capture_frameno);
+ else
+ fprintf(stdout, "\r[%d frames rendered] ",
+ frame.header->capture_frameno);
if (icf->chapter)
fprintf(stdout, "\t[Cache File %d]", icf->chapter);
fflush(stdout);
© All Rights Reserved