blacklist 5분 검사 함수 수정
This commit is contained in:
@@ -115,9 +115,9 @@ namespace upper_limit_crawler
|
|||||||
m_BlackList.Add(black);
|
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)
|
public bool IsInBlackList(int iTime, string strCode)
|
||||||
|
|||||||
Reference in New Issue
Block a user