diff --git a/phoneClients/ios/GpsTracker/WSViewController.m b/phoneClients/ios/GpsTracker/WSViewController.m index 7f6c0c1..18b9bb6 100644 --- a/phoneClients/ios/GpsTracker/WSViewController.m +++ b/phoneClients/ios/GpsTracker/WSViewController.m @@ -104,6 +104,9 @@ { CLLocation *location = [locations lastObject]; + // I learned this method of getting a time interval from xs2bush on stackoverflow and wanted to give that person + // credit for this, thanks. http://stackoverflow.com/a/6466152/125615 + NSTimeInterval secondsSinceLastWebsiteUpdate = fabs([lastWebsiteUpdateTime timeIntervalSinceNow]); if (firstTimeGettingPosition || (secondsSinceLastWebsiteUpdate > timeIntervalInSeconds)) // currently one minute {