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

Поиск
Список
Период
Сортировка
От svn@pgadmin.org
Тема SVN Commit by andreas: r4439 - trunk/pgadmin3/src/schema
Дата
Msg-id 200509102037.j8AKbOcx012542@developer.pgadmin.org
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: svn@pgadmin.org
Дата:
Сообщение: SVN Commit by andreas: r4438 - in trunk/pgadmin3/src: agent base frm include main schema
Следующее
От: Raphaël Enrici
Дата:
Сообщение: Re: Pgadmin III connection error