Пример #1
0
 /// <summary>
 /// Check if the virtual memory available to a process is > 2048
 /// </summary>
 /// <returns></returns>
 public static string Is3GBSwitchEnabled()
 {
     if (is64BitOperatingSystem)
     {
         return("Not applicable to 64-bit Operating Systems");
     }
     try
     {
         int virtualMemory = OSCollectorHelper.GetTotalMemory("Virtual");
         return((virtualMemory > 2048) ? "Yes" : "No");
     }
     catch (Exception ex)
     {
         Logger.Info(ex.ToString());
         return(Html.ErrorMsg());
     }
 }