Skip to content

Commit

Permalink
Fixed FormatException and Fixed missing sourcePicoseconds in DataValu…
Browse files Browse the repository at this point in the history
…e Equals (#1335)

* Fixed FormatException

* Fixed missing sourcePicoseconds in DataValue Equals
  • Loading branch information
cacamille3 committed Mar 23, 2021
1 parent 0ebe579 commit be1aade
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ public static Task<ApplicationConfiguration> Load(string sectionName, Applicatio
var message = new StringBuilder();
message.AppendFormat("Configuration file does not exist: {0}", filePath);
message.AppendLine();
message.AppendFormat("Current directory is: {1}", Directory.GetCurrentDirectory());
message.AppendFormat("Current directory is: {0}", Directory.GetCurrentDirectory());
throw ServiceResultException.Create(
StatusCodes.BadConfigurationError, message.ToString());
}
Expand Down Expand Up @@ -279,7 +279,7 @@ public static ApplicationConfiguration LoadWithNoValidation(FileInfo file, Type
var message = new StringBuilder();
message.AppendFormat("Configuration file could not be loaded: {0}", file.FullName);
message.AppendLine();
message.AppendFormat("Error is: {1}", e.Message);
message.AppendFormat("Error is: {0}", e.Message);
throw ServiceResultException.Create(
StatusCodes.BadConfigurationError, e, message.ToString());
}
Expand Down
2 changes: 1 addition & 1 deletion Stack/Opc.Ua.Core/Types/BuiltIn/DataValue.cs
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ public override bool Equals(object obj)
return false;
}

if (this.m_serverTimestamp != value.m_serverTimestamp)
if (this.m_sourcePicoseconds != value.m_sourcePicoseconds)
{
return false;
}
Expand Down

0 comments on commit be1aade

Please sign in to comment.