blacklist 5분 검사 함수 수정

This commit is contained in:
2016-07-28 21:47:22 +09:00
parent dd7c35c73f
commit 7690bcb4cc

View File

@@ -115,9 +115,9 @@ namespace upper_limit_crawler
m_BlackList.Add(black);
}
bool IsIn5Min(int iTime, int iCurTime)
bool IsIn5Min(int iTime1, int iTime2)
{
return (iTime >= iCurTime - 500);
return DateTime.ParseExact(iTime1.ToString(), "HHmmss", null) > DateTime.ParseExact(iTime2.ToString(), "HHmmss", null) - TimeSpan.ParseExact("05", "mm", null);
}
public bool IsInBlackList(int iTime, string strCode)