/[RomCheater]/trunk/RomCheater/Docking/FloatingMemorySearcher.cs
ViewVC logotype

Diff of /trunk/RomCheater/Docking/FloatingMemorySearcher.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/RomCheater/Docking/FloatingMemorySearcher.cs	2013/06/05 10:36:38	540
+++ trunk/RomCheater/Docking/FloatingMemorySearcher.cs	2013/06/05 11:06:36	541
@@ -1509,7 +1509,7 @@
                                         e.Result = true;
                                         return;
                                     }
-                                    int Last_Whole_Percent_Done = 0;
+                                    //int Last_Whole_Percent_Done = 0;
                                     provider.OpenProvider();
                                     int bytesRead = 0;
                                     byte[] data = new byte[STEP_SIZE];
@@ -1529,12 +1529,16 @@
                                     string message = string.Format(" -> Reading Address 0x{0:x8} from index 0x{1}", k.Address, index.ToString("X"));
                                     double double_percent_done = 100.0 * (double)((double)index / (double)reader.ResultCount);
                                     int int_percent_done = (int)double_percent_done;
-                                    if ((int_percent_done != Last_Whole_Percent_Done) && (index % 1000) == 0)
+                                    //if ((int_percent_done != Last_Whole_Percent_Done) && (index % 1000) == 0)
+                                    //{
+                                    //    UpdateProgress((int)double_percent_done, message);
+                                    //    Last_Whole_Percent_Done = int_percent_done;
+                                    //}
+                                    if ((index % 10000) == 0)
                                     {
                                         UpdateProgress((int)double_percent_done, message);
-                                        Last_Whole_Percent_Done = int_percent_done;
+                                        //Last_Whole_Percent_Done = int_percent_done;
                                     }
-
                                     #region comparison and serialization
                                     switch (sdt)
                                     {

 

  ViewVC Help
Powered by ViewVC 1.1.22