SVN Commit by andreas: r4439 - trunk/pgadmin3/src/schema

From: svn(at)pgadmin(dot)org
To: pgadmin-hackers(at)postgresql(dot)org
Subject: SVN Commit by andreas: r4439 - trunk/pgadmin3/src/schema
Date: 2005-09-10 20:37:24
Message-ID: 200509102037.j8AKbOcx012542@developer.pgadmin.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Author: andreas
Date: 2005-09-10 21:37:24 +0100 (Sat, 10 Sep 2005)
New Revision: 4439

Modified:
trunk/pgadmin3/src/schema/pgTable.cpp
Log:
msvc fix

Modified: trunk/pgadmin3/src/schema/pgTable.cpp
===================================================================
--- trunk/pgadmin3/src/schema/pgTable.cpp 2005-09-10 19:52:44 UTC (rev 4438)
+++ trunk/pgadmin3/src/schema/pgTable.cpp 2005-09-10 20:37:24 UTC (rev 4439)
@@ -468,12 +468,13 @@

if (rowsCounted)
{
- if (!estimatedRows || (estimatedRows == 1000 && rows != 1000))
+ if (!estimatedRows || (estimatedRows == 1000 && rows.GetValue() != 1000))
canHint = (rows >= 20);
else
{
- wxULongLong quot = (wxLongLong_t)(rows.GetValue() *10. / estimatedRows);
- canHint = ((quot > 12 || quot < 8) && (rows.GetValue() < estimatedRows-20. || rows.GetValue() > estimatedRows+20.));
+ double rowsDbl=(wxLongLong_t)rows.GetValue();
+ double quot=rowsDbl *10. / estimatedRows;
+ canHint = ((quot > 12 || quot < 8) && (rowsDbl < estimatedRows-20. || rowsDbl > estimatedRows+20.));
}
}
else if (estimatedRows == 1000)

Browse pgadmin-hackers by date

  From Date Subject
Next Message Raphaël Enrici 2005-09-11 13:14:37 Re: Pgadmin III connection error
Previous Message svn 2005-09-10 19:52:44 SVN Commit by andreas: r4438 - in trunk/pgadmin3/src: agent base frm include main schema