Skip to content
This repository has been archived by the owner on Oct 28, 2019. It is now read-only.

Commit

Permalink
Fix timer record and placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
panyz522 committed Oct 25, 2019
1 parent 158c007 commit 060048f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Data/Runner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public async Task<RunnerResult> Run(int player)
finished = true;
}
}
double usedTime = 0; //(DateTime.Now - startTime).TotalSeconds;
double usedTime = (DateTime.Now - startTime).TotalSeconds;

if (!finished)
{
Expand Down Expand Up @@ -153,7 +153,7 @@ public async Task<RunnerResult> Run(int player)
else { this.P2Log.AppendLog(stdOut, usedTime); }

if (this.BoundBoardManager != null)
this.BoundBoardManager.TimeUsedInRunner = usedTime;
this.BoundBoardManager.TimeUsedInRunner = 0;
return new RunnerResult
{
StdOut = stdOut,
Expand Down
4 changes: 2 additions & 2 deletions Pages/RunnerPage.razor
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
<div class="row">
<div class="col-sm-10">
<div class="input-group mb-3">
<input type="text" class="form-control" placeholder="Command" @bind="runner.P1Log.FileName" />
<input type="text" class="form-control" placeholder="Player 1 Log Path" @bind="runner.P1Log.FileName" />
<div class="input-group-append">
<button class="btn btn-warning" type="button" @onclick="@(()=>runner.P1Log.DeleteLogFile())">
Delete Player 1 Log File
Expand All @@ -70,7 +70,7 @@
<div class="row">
<div class="col-sm-10">
<div class="input-group mb-3">
<input type="text" class="form-control" placeholder="Command" @bind="runner.P2Log.FileName" />
<input type="text" class="form-control" placeholder="Player 2 Log Path" @bind="runner.P2Log.FileName" />
<div class="input-group-append">
<button class="btn btn-warning" type="button" @onclick="@(()=>runner.P2Log.DeleteLogFile())">
Delete Player 2 Log File
Expand Down

0 comments on commit 060048f

Please sign in to comment.