SVN Commit by andreas: r4439 - trunk/pgadmin3/src/schema - Mailing list pgadmin-hackers

From svn@pgadmin.org
Subject SVN Commit by andreas: r4439 - trunk/pgadmin3/src/schema
Date
Msg-id 200509102037.j8AKbOcx012542@developer.pgadmin.org
Whole thread Raw
List 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)


pgadmin-hackers by date:

Previous
From: svn@pgadmin.org
Date:
Subject: SVN Commit by andreas: r4438 - in trunk/pgadmin3/src: agent base frm include main schema
Next
From: Raphaël Enrici
Date:
Subject: Re: Pgadmin III connection error