/[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 07:27:44	523
+++ trunk/RomCheater/Docking/FloatingMemorySearcher.cs	2013/06/05 07:37:37	525
@@ -1809,7 +1809,7 @@
 
                         Stopwatch st_profiler = new Stopwatch();
                         st_profiler.Start();
-                        //int Last_Whole_Percent_Done = 0;
+                        int Last_Whole_Percent_Done = 0;
                         uint size = STEP_SIZE * 4096;
                         for (uint i = MemoryRangeStart; i < MemoryRangeSize; i+=size)
                         {
@@ -1826,12 +1826,12 @@
 
                             string message = string.Format(" -> Reading Address: 0x{0:x8}", (i + MemoryRangeStart));
                             double double_percent_done = 100.0 * (double)((double)i / (double)MemoryRangeSize);
-                            //int int_percent_done = (int)double_percent_done;
-                            if ((i % 10000) == 0)
+                            int int_percent_done = (int)double_percent_done;
+                            if ( (int_percent_done != Last_Whole_Percent_Done) && (i % 10000) == 0)
                             {
                                 UpdateProgress((int)double_percent_done, message);
                                 logger.Profiler.WriteLine("Memory Search Operation Profiler: search operation has taken {0} seconds", st_profiler.Elapsed.TotalSeconds.ToString());
-                                //Last_Whole_Percent_Done = int_percent_done;
+                                Last_Whole_Percent_Done = int_percent_done;
                             }
 
 

 

  ViewVC Help
Powered by ViewVC 1.1.22