summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--file.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/file.c b/file.c
index 28811eea3a..db69e84852 100644
--- a/file.c
+++ b/file.c
@@ -454,11 +454,14 @@ cf_read(capture_file *cf)
progbar_val = 1.0;
}
if (progbar != NULL) {
- /* update the packet lists content */
+ /* update the packet lists content on the first run or frequently on very large files */
+ /* (on smaller files the display update takes longer than reading the file) */
+ if(progbar_quantum > 500000 || progbar_nextstep == 0) {
packet_list_thaw();
if (auto_scroll_live && cf->plist_end != NULL)
packet_list_moveto_end();
packet_list_freeze();
+ }
g_snprintf(status_str, sizeof(status_str),
"%" PRId64 "KB of %" PRId64 "KB",