GitHubDashboard/Dashboard.cs
/// <summary>
/// To avoid exceeding the 5000 requests per hour limit, we ensure that we only 
/// make one request a second (3600 requests per hour)
/// </summary>
To avoid exceeding the 5000 requests per hour limit, we ensure that we only
make one request a second (3600 requests per hour)
To avoid exceeding the 5000 requests per hour limit we ensure that we only make one request a second ( 3600 requests per hour )
protected void ElapseOneSecond()
		{
			int msToSleep = 1000 - (int)(DateTime.Now - then).TotalMilliseconds;
			then = DateTime.Now;
			if (msToSleep > 0)
			{
				Thread.Sleep(msToSleep);
			}
		}
protected void ElapseOneSecond ( ) { int msToSleep = 1000 - ( int ) ( DateTime . Now - then ) . TotalMilliseconds ; then = DateTime . Now ; if ( msToSleep > 0 ) { Thread . Sleep ( msToSleep ) ; } }
To avoid exceeding the 5000 requests per hour limit, we ensure that we only
make one request a second (3600 requests per hour)
To avoid exceeding the 5000 requests per hour limit we ensure that we only make one request a second ( 3600 requests per hour )
// If there's any time remaining to sleep before our next query, do so now.