aboutsummaryrefslogtreecommitdiffstats
path: root/ethereal.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>1999-08-28 01:51:58 +0000
committerGuy Harris <guy@alum.mit.edu>1999-08-28 01:51:58 +0000
commitbb6a82004e0bb8eb4cb40343449039e3d16506f4 (patch)
treec8ce02be17aeeb7681b52917c20befffe4fdd8c4 /ethereal.c
parentae53260d0213cb805bcd84ee13045dd1f8a42e9c (diff)
Don't do file-read progress bar updates with a timeout; instead, update
the progress bar up to 100 times, as we get another percent closer to completion. That reduces the number of times we run the GTK+ main loop; that main loop may do a "select()" or "poll()" or FIONREAD "ioctl" to check for input from the X server, adding to the CPU overhead of reading a file. The packet filtering progress bar is already updated in a similar fashion; make it also do up to 100 updates. svn path=/trunk/; revision=597
Diffstat (limited to 'ethereal.c')
-rw-r--r--ethereal.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/ethereal.c b/ethereal.c
index cf342c03d7..15baf5c0fb 100644
--- a/ethereal.c
+++ b/ethereal.c
@@ -1,6 +1,6 @@
/* ethereal.c
*
- * $Id: ethereal.c,v 1.108 1999/08/26 06:20:49 gram Exp $
+ * $Id: ethereal.c,v 1.109 1999/08/28 01:51:58 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -176,15 +176,6 @@ about_ethereal( GtkWidget *w, gpointer data ) {
VERSION, comp_info_str);
}
-/* Update the progress bar */
-gint
-file_progress_cb(gpointer p) {
- capture_file *cf = (capture_file*) p;
- gtk_progress_bar_update(GTK_PROGRESS_BAR(prog_bar),
- (gfloat) ftell(cf->fh) / (gfloat) cf->f_len);
- return TRUE;
-}
-
/* Follow the TCP stream, if any, to which the last packet that we called
a dissection routine on belongs (this might be the most recently
selected packet, or it might be the last packet in the file). */