Release version 0.1.7. Improved report writer.

This commit is contained in:
Michael Möller
2010-02-01 21:04:14 +00:00
parent f3657cc53a
commit 432a947633
6 changed files with 28 additions and 12 deletions

View File

@@ -111,7 +111,7 @@ namespace OpenHardwareMonitor.Hardware.CPU {
AppendRegister(nameBuilder, edx);
}
}
cpuBrandString = nameBuilder.ToString();
cpuBrandString = nameBuilder.ToString().Trim('\0');
nameBuilder.Replace("(R)", " ");
nameBuilder.Replace("(TM)", " ");
nameBuilder.Replace("(tm)", " ");
@@ -177,8 +177,6 @@ namespace OpenHardwareMonitor.Hardware.CPU {
}
public string GetReport() {
if (hardware.Count == 0)
return null;
StringBuilder r = new StringBuilder();
@@ -199,10 +197,12 @@ namespace OpenHardwareMonitor.Hardware.CPU {
r.AppendLine("CPUID Return Values");
r.AppendLine();
r.AppendLine(" Function EAX EBX ECX EDX");
AppendCpuidData(r, cpuidData, CPUID);
AppendCpuidData(r, cpuidExtData, CPUID_EXT);
r.AppendLine();
if (cpuidData != null) {
r.AppendLine(" Function EAX EBX ECX EDX");
AppendCpuidData(r, cpuidData, CPUID);
AppendCpuidData(r, cpuidExtData, CPUID_EXT);
r.AppendLine();
}
return r.ToString();
}