summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2007-01-15 00:17:32 +0000
committerUlf Lamping <ulf.lamping@web.de>2007-01-15 00:17:32 +0000
commit16ac7832b4caf96e8177d8184b6717f11cbc35be (patch)
tree4f270f03a255609a9886a074f8da136f55faa2da /file.c
parent3e1344fd4b5ede493ce4a1ae256d49fc71f5635c (diff)
downloadwireshark-16ac7832b4caf96e8177d8184b6717f11cbc35be.tar.gz
minor bugfix of file loading: don't update the packet list if loading a smaller file, the update takes longer than the file to load.
svn path=/trunk/; revision=20434
Diffstat (limited to 'file.c')
-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",