mirror of
https://github.com/postgres/postgres.git
synced 2025-12-06 00:02:13 +03:00
Standard pgindent run for 8.1.
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $PostgreSQL: pgsql/src/backend/optimizer/geqo/geqo_misc.c,v 1.42 2004/12/31 21:59:58 pgsql Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/optimizer/geqo/geqo_misc.c,v 1.43 2005/10/15 02:49:19 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -41,10 +41,10 @@ avg_pool(Pool *pool)
|
||||
elog(ERROR, "pool_size is zero");
|
||||
|
||||
/*
|
||||
* Since the pool may contain multiple occurrences of DBL_MAX, divide
|
||||
* by pool->size before summing, not after, to avoid overflow. This
|
||||
* loses a little in speed and accuracy, but this routine is only used
|
||||
* for debug printouts, so we don't care that much.
|
||||
* Since the pool may contain multiple occurrences of DBL_MAX, divide by
|
||||
* pool->size before summing, not after, to avoid overflow. This loses a
|
||||
* little in speed and accuracy, but this routine is only used for debug
|
||||
* printouts, so we don't care that much.
|
||||
*/
|
||||
for (i = 0; i < pool->size; i++)
|
||||
cumulative += pool->data[i].worth / pool->size;
|
||||
|
||||
Reference in New Issue
Block a user