aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/main.c
diff options
context:
space:
mode:
authorulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>2006-10-13 18:19:42 +0000
committerulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>2006-10-13 18:19:42 +0000
commit0a08d3ddd58211338a671c2583e1a8e440fba15a (patch)
tree2e7817b495c0ce6921061fe666d535c1d6477737 /gtk/main.c
parente144938ad5628430ce85a14aa591de5d66901b6f (diff)
remove the experimental display of the highest expert level in the statusbar for now.
as long as we haven't solved that TCP checksum offload problems causing checksum errors all the time, this will display the error level for almost every capture done on a local machine - rendering this display pretty useless in it's current form. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@19516 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'gtk/main.c')
-rw-r--r--gtk/main.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/gtk/main.c b/gtk/main.c
index 822c7ea932..92104c13f4 100644
--- a/gtk/main.c
+++ b/gtk/main.c
@@ -1413,12 +1413,20 @@ set_display_filename(capture_file *cf)
}
/* statusbar */
+#if 0
+ /* XXX - don't show the highest expert level unless the TCP checksum offloading is "solved" */
status_msg = g_strdup_printf(" File: \"%s\" %s %02lu:%02lu:%02lu [Expert: %s]",
(cf->filename) ? cf->filename : "", size_str,
(long)cf->elapsed_time.secs/3600,
(long)cf->elapsed_time.secs%3600/60,
(long)cf->elapsed_time.secs%60,
val_to_str(expert_get_highest_severity(), expert_severity_vals, "Unknown (%u)"));
+#endif
+ status_msg = g_strdup_printf(" File: \"%s\" %s %02lu:%02lu:%02lu",
+ (cf->filename) ? cf->filename : "", size_str,
+ (long)cf->elapsed_time.secs/3600,
+ (long)cf->elapsed_time.secs%3600/60,
+ (long)cf->elapsed_time.secs%60);
g_free(size_str);
statusbar_push_file_msg(status_msg);
g_free(status_msg);
@@ -1648,6 +1656,8 @@ main_cf_cb_live_capture_update_continue(capture_file *cf)
statusbar_pop_file_msg();
+#if 0
+ /* XXX - don't show the highest expert level unless the TCP checksum offloading is "solved" */
if (cf->f_datalen/1024/1024 > 10) {
capture_msg = g_strdup_printf(" %s: <live capture in progress> File: %s %ld MB [Expert: %s]",
get_interface_descriptive_name(capture_opts->iface),
@@ -1667,6 +1677,23 @@ main_cf_cb_live_capture_update_continue(capture_file *cf)
cf->f_datalen,
val_to_str(expert_get_highest_severity(), expert_severity_vals, "Unknown (%u)"));
}
+#endif
+ if (cf->f_datalen/1024/1024 > 10) {
+ capture_msg = g_strdup_printf(" %s: <live capture in progress> File: %s %ld MB",
+ get_interface_descriptive_name(capture_opts->iface),
+ capture_opts->save_file,
+ cf->f_datalen/1024/1024);
+ } else if (cf->f_datalen/1024 > 10) {
+ capture_msg = g_strdup_printf(" %s: <live capture in progress> File: %s %ld KB",
+ get_interface_descriptive_name(capture_opts->iface),
+ capture_opts->save_file,
+ cf->f_datalen/1024);
+ } else {
+ capture_msg = g_strdup_printf(" %s: <live capture in progress> File: %s %ld Bytes",
+ get_interface_descriptive_name(capture_opts->iface),
+ capture_opts->save_file,
+ cf->f_datalen);
+ }
statusbar_push_file_msg(capture_msg);
}