/* Ordering weight: count-1 * count-2 * ... / count-n  */
static double sym_weight(const struct sym_entry *sym)
/* Ordering weight: count-1 * count-2 * ... / count-n  */
static double sym_weight(const struct sym_entry *sym)
{
	double weight = sym->snap_count;
	int counter;
	if (!display_weighted)
		return weight;
	for (counter = 1; counter < nr_counters-1; counter++)
		weight *= sym->count[counter];
	weight /= (sym->count[counter] + 1);
	return weight;
}