Skip to content

Commit

Permalink
Fix RemainingTime() logic
Browse files Browse the repository at this point in the history
  • Loading branch information
mhart committed Feb 20, 2018
1 parent b2b5e78 commit 6c200da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dotnetcore2.0/run/MockBootstraps/MockLambdaContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public MockLambdaContext(string eventBody, IDictionary environment) : this()
/// </summary>
public TimeSpan RemainingTime()
{
return TimeSpan.FromSeconds(Timeout - (StartTime - DateTime.Now).TotalSeconds);
return StartTime + TimeSpan.FromSeconds(Timeout) - DateTime.Now;
}

public long Duration => (long)(DateTime.Now - StartTime).TotalMilliseconds;
Expand Down

0 comments on commit 6c200da

Please sign in to comment.