diff --git a/AIParkingApplication/AppConstant.cs b/AIParkingApplication/AppConstant.cs index e447052..35d9780 100644 --- a/AIParkingApplication/AppConstant.cs +++ b/AIParkingApplication/AppConstant.cs @@ -9,5 +9,7 @@ #endregion public const string CAMERA_FAILED_IMAGE_PATH = @"Images\CantConnectCamera.jpg"; + + public const int TIME_TO_GET_STATISTIC_INFO = 60; } } diff --git a/AIParkingApplication/Statistic.cs b/AIParkingApplication/Statistic.cs index 7978d17..31e699b 100644 --- a/AIParkingApplication/Statistic.cs +++ b/AIParkingApplication/Statistic.cs @@ -32,7 +32,7 @@ namespace AIParkingApplication while (true) { GETDataFromServer(); - Thread.Sleep(1000); + Thread.Sleep(AppConstant.TIME_TO_GET_STATISTIC_INFO * 1000); } }