Changeset 1876
- Timestamp:
- 3/1/2010 12:51:09 PM (3 years ago)
- File:
-
- 1 edited
-
trunk/eraser6/Eraser.Util/BlackBox.cs (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/eraser6/Eraser.Util/BlackBox.cs
r1875 r1876 29 29 using System.Diagnostics; 30 30 using System.Reflection; 31 using Microsoft.Win32.SafeHandles;32 31 33 32 using System.Drawing; … … 36 35 using System.Globalization; 37 36 38 using ICSharpCode.SharpZipLib.Tar;39 using ICSharpCode.SharpZipLib.BZip2;40 37 using System.Net; 41 38 using System.Xml; 42 39 using System.ComponentModel; 40 41 using ICSharpCode.SharpZipLib.Tar; 42 using ICSharpCode.SharpZipLib.BZip2; 43 using Microsoft.Win32.SafeHandles; 44 using Microsoft.VisualBasic.Devices; 43 45 44 46 namespace Eraser.Util … … 189 191 { 190 192 //Application information 191 string separator = new string('-', 76);192 string lineFormat = "{0, 17}: {1}";193 string separator = new string('-', 100); 194 string lineFormat = "{0,20}: {1}"; 193 195 stream.WriteLine("Application Information"); 194 196 stream.WriteLine(separator); … … 207 209 208 210 //System Information 211 ComputerInfo info = new ComputerInfo(); 209 212 stream.WriteLine(); 210 213 stream.WriteLine("System Information"); 211 214 stream.WriteLine(separator); 212 215 stream.WriteLine(string.Format(lineFormat, "Operating System", 213 string.Format("{0} { 2} {3}{1}",214 Environment.OSVersion.VersionString,216 string.Format("{0} {1}{2} {4}", 217 info.OSFullName.Trim(), info.OSVersion.Trim(), 215 218 string.IsNullOrEmpty(Environment.OSVersion.ServicePack) ? 216 219 string.Empty : 217 string.Format("(Service Pack { 2})", Environment.OSVersion.ServicePack),220 string.Format("(Service Pack {0})", Environment.OSVersion.ServicePack), 218 221 SystemInfo.WindowsEdition == WindowsEditions.Undefined ? 219 222 "" : SystemInfo.WindowsEdition.ToString(), 220 223 SystemInfo.ProcessorArchitecture))); 224 stream.WriteLine(string.Format(lineFormat, ".NET Runtime version", 225 Environment.Version)); 221 226 stream.WriteLine(string.Format(lineFormat, "Processor Count", 222 227 Environment.ProcessorCount)); 223 228 stream.WriteLine(string.Format(lineFormat, "Physical Memory", 229 string.Format("{0}/{1}", info.AvailablePhysicalMemory, 230 info.TotalPhysicalMemory))); 231 stream.WriteLine(string.Format(lineFormat, "Virtual Memory", 232 string.Format("{0}/{1}", info.AvailableVirtualMemory, 233 info.TotalVirtualMemory))); 234 224 235 //Running processes 225 236 stream.WriteLine();
Note: See TracChangeset
for help on using the changeset viewer.
