Skip to content

Commit

Permalink
Fix typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
steffen-wilke committed Oct 11, 2019
1 parent 20c72e9 commit bb2afe6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Soloplan.WhatsON.CruiseControl/CruiseControlServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class CruiseControlServer
private static readonly Logger log = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType?.ToString());
private readonly string baseUrl;

private DateTime lastPoolled;
private DateTime lastPolled;

private CruiseControlJobs cache;

Expand All @@ -38,10 +38,10 @@ public CruiseControlServer(string address)
public async Task<CruiseControlJob> GetProjectStatus(CancellationToken cancellationToken, string projectName, int interval)
{
var pollInterval = new TimeSpan(0, 0, 0, interval, 0);
if (DateTime.Now - this.lastPoolled > pollInterval)
if (DateTime.Now - this.lastPolled > pollInterval)
{
log.Trace("Polling server {@server}", new { Address = this.ReportUrl, LastPolled = this.lastPoolled, CallingProject = projectName });
this.lastPoolled = DateTime.Now;
log.Trace("Polling server {@server}", new { Address = this.ReportUrl, LastPolled = this.lastPolled, CallingProject = projectName });
this.lastPolled = DateTime.Now;
this.cache = await this.GetStatusAsync<CruiseControlJobs>(cancellationToken, this.ReportUrl);
}

Expand Down

0 comments on commit bb2afe6

Please sign in to comment.