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

Commit 060048f

Browse files
committed
Fix timer record and placeholder
1 parent 158c007 commit 060048f

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

Data/Runner.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public async Task<RunnerResult> Run(int player)
125125
finished = true;
126126
}
127127
}
128-
double usedTime = 0; //(DateTime.Now - startTime).TotalSeconds;
128+
double usedTime = (DateTime.Now - startTime).TotalSeconds;
129129

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

155155
if (this.BoundBoardManager != null)
156-
this.BoundBoardManager.TimeUsedInRunner = usedTime;
156+
this.BoundBoardManager.TimeUsedInRunner = 0;
157157
return new RunnerResult
158158
{
159159
StdOut = stdOut,

Pages/RunnerPage.razor

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
<div class="row">
5858
<div class="col-sm-10">
5959
<div class="input-group mb-3">
60-
<input type="text" class="form-control" placeholder="Command" @bind="runner.P1Log.FileName" />
60+
<input type="text" class="form-control" placeholder="Player 1 Log Path" @bind="runner.P1Log.FileName" />
6161
<div class="input-group-append">
6262
<button class="btn btn-warning" type="button" @onclick="@(()=>runner.P1Log.DeleteLogFile())">
6363
Delete Player 1 Log File
@@ -70,7 +70,7 @@
7070
<div class="row">
7171
<div class="col-sm-10">
7272
<div class="input-group mb-3">
73-
<input type="text" class="form-control" placeholder="Command" @bind="runner.P2Log.FileName" />
73+
<input type="text" class="form-control" placeholder="Player 2 Log Path" @bind="runner.P2Log.FileName" />
7474
<div class="input-group-append">
7575
<button class="btn btn-warning" type="button" @onclick="@(()=>runner.P2Log.DeleteLogFile())">
7676
Delete Player 2 Log File

0 commit comments

Comments
 (0)