[Mono.Profiler.Log] Styling fixes
[mono.git] / mcs / class / Mono.Profiler.Log / Mono.Profiler.Log / LogStreamHeader.cs
index 494044d60ce7ce19b8ac724cbe08e2bcfa0da6cf..44575028a7a38613d59d698f2c282e06d4ff6100 100644 (file)
@@ -7,8 +7,9 @@ using System;
 namespace Mono.Profiler.Log {
 
        public sealed class LogStreamHeader {
-               const int MinimumMLPDSupportedVersion = 13;
-               const int MaximumMLPDSupportedVersion = 14;
+               
+               const int MinVersion = 13;
+               const int MaxVersion = 14;
 
                const int Id = 0x4d505a01;
 
@@ -44,8 +45,8 @@ namespace Mono.Profiler.Log {
                        Version = new Version (reader.ReadByte (), reader.ReadByte ());
                        FormatVersion = reader.ReadByte ();
 
-                       if (FormatVersion < MinimumMLPDSupportedVersion || FormatVersion > MaximumMLPDSupportedVersion)
-                               throw new LogException ($"Unsupported MLPD version {FormatVersion}. Should be >= {MinimumMLPDSupportedVersion} and <= {MaximumMLPDSupportedVersion}");
+                       if (FormatVersion < MinVersion || FormatVersion > MaxVersion)
+                               throw new LogException ($"Unsupported MLPD version {FormatVersion}. Should be >= {MinVersion} and <= {MaxVersion}.");
                        
                        PointerSize = reader.ReadByte ();
                        StartupTime = reader.ReadUInt64 ();