Skip to content

Commit

Permalink
Review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander van Delft committed Nov 25, 2024
1 parent 26c12bd commit d0e8bd9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CDP4DalCommon/Protocol/Tasks/CometTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public CometTask()
/// <remarks>
/// A value of -1 is returned when the task is still running or not completed with success
/// </remarks>
public readonly int Duration => ComputeDuration();
public readonly int Duration => this.ComputeDuration();

/// <summary>
/// Gets or sets the <see cref="DateTime" /> at which the <see cref="CometTask" /> was started
Expand Down Expand Up @@ -107,12 +107,12 @@ public CometTask()
/// <returns>The computated duration</returns>
private readonly int ComputeDuration()
{
if (!FinishedAt.HasValue || !StartedAt.HasValue)
if (!this.FinishedAt.HasValue || !this.StartedAt.HasValue)
{
return -1;
}

var timeSpan = FinishedAt.Value - StartedAt.Value;
var timeSpan = this.FinishedAt.Value - this.StartedAt.Value;
return (int)timeSpan.TotalSeconds;
}
}
Expand Down

0 comments on commit d0e8bd9

Please sign in to comment.