diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2007-01-15 00:17:32 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2007-01-15 00:17:32 +0000 |
commit | 16ac7832b4caf96e8177d8184b6717f11cbc35be (patch) | |
tree | 4f270f03a255609a9886a074f8da136f55faa2da /file.c | |
parent | 3e1344fd4b5ede493ce4a1ae256d49fc71f5635c (diff) |
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.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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", |