Đưa chu kì lấy dữ liệu sang Constant. {TIME_TO_GET_STATISTIC_INFO}. Đơn vị tính theo giây
This commit is contained in:
parent
b2cdbf26f5
commit
56e16cf267
|
@ -9,5 +9,7 @@
|
|||
#endregion
|
||||
|
||||
public const string CAMERA_FAILED_IMAGE_PATH = @"Images\CantConnectCamera.jpg";
|
||||
|
||||
public const int TIME_TO_GET_STATISTIC_INFO = 60;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -32,7 +32,7 @@ namespace AIParkingApplication
|
|||
while (true)
|
||||
{
|
||||
GETDataFromServer();
|
||||
Thread.Sleep(1000);
|
||||
Thread.Sleep(AppConstant.TIME_TO_GET_STATISTIC_INFO * 1000);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user