Ethereal-dev: Re: [Ethereal-dev] Flow graph functionality

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Alejandro Vaquero <alejandrovaquero@xxxxxxxxx>
Date: Sat, 23 Jul 2005 16:13:42 -0600
Hi All,
    find a small patch for this.

regards
Alejandro

LEGO wrote:
Good call, It happens every time a packet goes from A to A.

I'll fill in a bug report...

Alejandro?
Francisco?

On 7/21/05, Jacques, Olivier (OCBU-Test Infra) <olivier.jacques@xxxxxx> wrote:
  
I would really like to see the feature that Francisco has
submitted in this message:
http://www.ethereal.com/lists/ethereal-dev/200504/msg00655.html
integrated in Ethereal.
      
Hello,

I've seen that this feature has been checked-in. Thanks!
But Ethereal freezes when I try to use this feature on a simple SIP
local capture (localhost to localhost).

This is SVN 14963.

Thanks,
Olivier.


_______________________________________________
Ethereal-dev mailing list
Ethereal-dev@xxxxxxxxxxxx
http://www.ethereal.com/mailman/listinfo/ethereal-dev




    

  
Index: graph_analysis.c
===================================================================
--- graph_analysis.c	(revision 14970)
+++ graph_analysis.c	(working copy)
@@ -1541,7 +1541,10 @@
 #endif
 		/* create main Graph draw area */
         user_data->dlg.draw_area=gtk_drawing_area_new();
-		user_data->dlg.pixmap_width = user_data->num_nodes * NODE_WIDTH;
+		if (user_data->num_nodes < 2)
+			user_data->dlg.pixmap_width = 2 * NODE_WIDTH;
+		else
+			user_data->dlg.pixmap_width = user_data->num_nodes * NODE_WIDTH;
         WIDGET_SET_SIZE(user_data->dlg.draw_area, user_data->dlg.pixmap_width, user_data->dlg.pixmap_height);
 		user_data->dlg.scroll_window=gtk_scrolled_window_new(NULL, NULL);
 		if ( user_data->num_nodes < 6)