Skip to content

Commit

Permalink
Added a substring to correctly parse MciStatus
Browse files Browse the repository at this point in the history
  • Loading branch information
JimmahDean committed Mar 2, 2024
1 parent ad16613 commit 23e2172
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion client/data/Methods/Events.cs
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ public static MachineCheckException MakeMachineCheckException(XmlNode dataNode)
{
MachineCheckException mce = new();

string MciStatString = dataNode.InnerText;
string MciStatString = dataNode.InnerText.Substring(2);

if (!ulong.TryParse(MciStatString, System.Globalization.NumberStyles.HexNumber, null, out ulong MciStat))
{
Expand Down
3 changes: 0 additions & 3 deletions client/data/Structs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,6 @@ public class UnexpectedShutdown
}
public class MachineCheckException
{
public string Timestamp;
public bool MciStatusRegisterValid; // Bit 63
public bool ErrorOverflow; // Bit 62
public bool UncorrectedError; // Bit 61
Expand Down Expand Up @@ -337,14 +336,12 @@ public class PciWheaError
}
public unsafe class WheaErrorRecord
{
public DateTime? Timestamp;
public WheaErrorHeader ErrorHeader;
public List<WheaErrorDescriptor> ErrorDescriptors = new();
public List<string> ErrorPackets = new();
}
public class WheaErrorRecordReadable
{
public DateTime? Timestamp;
public WheaErrorHeaderReadable ErrorHeader;
public List<WheaErrorDescriptorReadable> ErrorDescriptors;
public List<string> ErrorPackets;
Expand Down

0 comments on commit 23e2172

Please sign in to comment.