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:
parent
dc7a454b71
commit
b4980a48bd
|
@ -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, "");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue