Wireshark-commits: [Wireshark-commits] rev 34563: /trunk/ /trunk/: file.c
Date: Mon, 18 Oct 2010 20:52:57 GMT
http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=34563

User: morriss
Date: 2010/10/18 01:52 PM

Log:
 Fix progress bar when loading compressed files.
 
 Continue to use the data offset ((uncompressed) bytes read) as our progress
 indicator, at least until we get a progress value greater than 1.0.  Then,
 in addition to checking if the size of the file changed, check our position in
 the file and use that as our progress indicator.
 
 This optimizes uncompressed file accesses (avoiding an lseek()) at the "expense"
 of switching progress measures (from data read to position in the file) while
 loading a file.  Tests have shown that the progress bar never shows the data
 offset number when loading a compressed file, so this should be okay.

Directory: /trunk/
  Changes    Path          Action
  +32 -13    file.c        Modified