From bef90e1493815a07e619c4cd0da6a7d65321c26e Mon Sep 17 00:00:00 2001 From: Jeff Morriss Date: Mon, 19 Jun 2017 14:48:42 -0400 Subject: Update the capture file load time each time we update the progress bar. The Qt UI doesn't have a popup that tells you how long your file has been loading. So let's set the load time each time we update the packets bar. (Obviously this is only useful when you're waiting a long time for a file to load...) Change-Id: I9da372800a12454888439e2baf3d2a848c611501 Reviewed-on: https://code.wireshark.org/review/22234 Petri-Dish: Anders Broman Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman --- file.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'file.c') diff --git a/file.c b/file.c index b8423cca71..c9e968005e 100644 --- a/file.c +++ b/file.c @@ -638,6 +638,7 @@ cf_read(capture_file *cf, gboolean reloading) progbar_val = calc_progbar_val(cf, size, file_pos, status_str, sizeof(status_str)); /* update the packet bar content on the first run or frequently on very large files */ update_progress_dlg(progbar, progbar_val, status_str); + compute_elapsed(cf, &start_time); packets_bar_update(); g_timer_start(prog_timer); } @@ -4292,6 +4293,7 @@ rescan_file(capture_file *cf, const char *fname, gboolean is_tempfile) progbar_val = calc_progbar_val(cf, size, cf->f_datalen, status_str, sizeof(status_str)); /* update the packet bar content on the first run or frequently on very large files */ update_progress_dlg(progbar, progbar_val, status_str); + compute_elapsed(cf, &start_time); packets_bar_update(); g_timer_start(prog_timer); } -- cgit v1.2.3