From Shiang-Ming Huang:

Removed unnecessary parentheses that make the average packets size 
calculated as an integer instead of a float.

svn path=/trunk/; revision=23446
This commit is contained in:
Stig Bjørlykke 2007-11-14 09:37:44 +00:00
parent dc7a454b71
commit b4980a48bd
1 changed files with 1 additions and 1 deletions

View File

@ -310,7 +310,7 @@ summary_open_cb(GtkWidget *w _U_, gpointer d _U_)
if (summary.packet_count > 0){
g_snprintf(string_buff, SUM_STR_MAX, "%.3f bytes",
/* MSVC cannot convert from unsigned __int64 to float, so first convert to signed __int64 */
(float) (gint64) (summary.bytes/summary.packet_count) );
(float) (gint64) summary.bytes/summary.packet_count);
} else {
strcpy(string_buff, "");
}