From 56e16cf267f21fe86fefc6f797ebb2584969d816 Mon Sep 17 00:00:00 2001 From: Le Chau Date: Thu, 25 Jun 2020 09:58:47 +0700 Subject: [PATCH] =?UTF-8?q?=C4=90=C6=B0a=20chu=20k=C3=AC=20l=E1=BA=A5y=20d?= =?UTF-8?q?=E1=BB=AF=20li=E1=BB=87u=20sang=20Constant.=20{TIME=5FTO=5FGET?= =?UTF-8?q?=5FSTATISTIC=5FINFO}.=20=C4=90=C6=A1n=20v=E1=BB=8B=20t=C3=ADnh?= =?UTF-8?q?=20theo=20gi=C3=A2y?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AIParkingApplication/AppConstant.cs | 2 ++ AIParkingApplication/Statistic.cs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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); } }