Add bdimg.com to direct. Remove host from stat after 15 days.

This commit is contained in:
Chen Yufei
2013-02-10 13:00:32 +08:00
parent 2a1a824a50
commit 7d6cf46bb0
2 changed files with 2 additions and 1 deletions

View File

@@ -102,6 +102,7 @@ var directDomainList = []string{
"bing.com.cn", "bing.com.cn",
"baidu.com", "baidu.com",
"bdstatic.com", "bdstatic.com",
"bdimg.com",
"youdao.com", "youdao.com",
"sogou.com", "sogou.com",

View File

@@ -73,7 +73,7 @@ func (vc *VisitCnt) userSpecified() bool {
return vc.Blocked == userCnt || vc.Direct == userCnt return vc.Blocked == userCnt || vc.Direct == userCnt
} }
const siteStaleThreshold = 30 * 24 * time.Hour const siteStaleThreshold = 15 * 24 * time.Hour
// shouldDrop returns true if the a VisitCnt is not visited for a long time // shouldDrop returns true if the a VisitCnt is not visited for a long time
// (several days) or is specified by user. // (several days) or is specified by user.