/[RomCheater]/trunk/RomCheater.EmuMMAPPlugin/EmuMEMMapDockControl.cs
ViewVC logotype

Diff of /trunk/RomCheater.EmuMMAPPlugin/EmuMEMMapDockControl.cs

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

--- trunk/RomCheater.EmuMMAPPlugin/EmuMEMMapDockControl.cs	2013/06/08 22:37:39	648
+++ trunk/RomCheater.EmuMMAPPlugin/EmuMEMMapDockControl.cs	2013/06/08 22:45:25	649
@@ -235,7 +235,11 @@
         {
             this.MapStart = start;
             this.MapEnd = end;
-            this.MapSize = string.Format("0x{0}={1:0.00000}MB", size.ToString("X"), ((double)size / (1024.0 * 1024.0)));
+
+            ulong _size = size + 1;
+            double t = 1024.0 * 1024.0;
+            double __size = (double)_size/t;
+            this.MapSize = string.Format("0x{0}={1:0.000000}MB", _size.ToString("X"), __size);
         }
         #region IMappedMemRange Members
         public string MapName { get; private set; }

 

  ViewVC Help
Powered by ViewVC 1.1.22