diff options
author | Luis Ontanon <luis.ontanon@gmail.com> | 2005-03-06 17:06:55 +0000 |
---|---|---|
committer | Luis Ontanon <luis.ontanon@gmail.com> | 2005-03-06 17:06:55 +0000 |
commit | cb90b0da79b7e6376a9bd3793a1b542f58730930 (patch) | |
tree | 64cba26245baee3e43b3a97f8e169f10c291ca61 /epan/stats_tree.c | |
parent | 3bdc6321bdb095945b3a535980354a75c1cacf49 (diff) |
- replace tabs with spaces while printing
- get rid of a warning in windows compile
svn path=/trunk/; revision=13631
Diffstat (limited to 'epan/stats_tree.c')
-rw-r--r-- | epan/stats_tree.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/stats_tree.c b/epan/stats_tree.c index 885b300a20..5d08a49a58 100644 --- a/epan/stats_tree.c +++ b/epan/stats_tree.c @@ -58,7 +58,7 @@ extern void get_strings_from_node(const stat_node* node, guint8* value, guint8* if (percent) { *percent = '\0'; if (node->parent->counter > 0) { - f = ((float)node->counter * 100.0) / node->parent->counter; + f = (float)(((float)node->counter * 100.0) / node->parent->counter); g_snprintf(percent,NUM_BUF_SIZE,"%.2f%%",f); } } @@ -111,7 +111,7 @@ extern void stat_branch_to_str(const stat_node* node, GString* s, guint indent) guint i = 0; if (indent == 0) { - format = g_strdup_printf(" %%s%%-%us%%12s\t%%12s\t%%12s\n",stats_branch_max_name_len(node,0)); + format = g_strdup_printf(" %%s%%-%us%%12s %%12s %%12s\n",stats_branch_max_name_len(node,0)); } get_strings_from_node(node, value, rate, percent); |