else if (currentArg.StartsWith("datapinned") || currentArg.StartsWith("dp")) // percentage data pinned
{
currentArgValue = args[++i];
- s_percentPinned = float.Parse(currentArgValue);
+ s_percentPinned = float.Parse(currentArgValue, System.Globalization.CultureInfo.InvariantCulture);
if (s_percentPinned < 0 || s_percentPinned > 1)
{
Console.WriteLine("Error! datapinned should be a number from 0 to 1");
else if (currentArg.StartsWith("dataweak") || currentArg.StartsWith("dw"))
{
currentArgValue = args[++i];
- s_percentWeak = float.Parse(currentArgValue);
+ s_percentWeak = float.Parse(currentArgValue, System.Globalization.CultureInfo.InvariantCulture);
if (s_percentWeak < 0 || s_percentWeak > 1)
{
Console.WriteLine("Error! dataweak should be a number from 0 to 1");
else if (String.Compare(currentArg.ToLower(), "pinned") == 0)
{
currentArgValue = args[++i];
- percentPinned = float.Parse(currentArgValue);
+ percentPinned = float.Parse(currentArgValue, System.Globalization.CultureInfo.InvariantCulture);
}
else if (String.Compare(currentArg.ToLower(), "lohpin") == 0) //for LOH compacting testing, this is the option to apply the pinning percentage to LOH
{
else if (String.Compare(currentArg.ToLower(), "bucket1") == 0)
{
currentArgValue = args[++i];
- percentBucket1 = float.Parse(currentArgValue);
+ percentBucket1 = float.Parse(currentArgValue, System.Globalization.CultureInfo.InvariantCulture);
}
else if (String.Compare(currentArg.ToLower(), "bucket2") == 0)
{
currentArgValue = args[++i];
- percentBucket2 = float.Parse(currentArgValue);
+ percentBucket2 = float.Parse(currentArgValue, System.Globalization.CultureInfo.InvariantCulture);
}
else if (String.Compare(currentArg.ToLower(), "bucket3") == 0)
{
currentArgValue = args[++i];
- percentBucket3 = float.Parse(currentArgValue);
+ percentBucket3 = float.Parse(currentArgValue, System.Globalization.CultureInfo.InvariantCulture);
}
else if (String.Compare(currentArg.ToLower(), "bucket4") == 0)
{
currentArgValue = args[++i];
- percentBucket4 = float.Parse(currentArgValue);
+ percentBucket4 = float.Parse(currentArgValue, System.Globalization.CultureInfo.InvariantCulture);
}
else if (String.Compare(currentArg.ToLower(), "nolocks") == 0)
{