Skip to content

Commit

Permalink
improve suspicious heuristic (closes #468)
Browse files Browse the repository at this point in the history
  • Loading branch information
boogheta committed Dec 6, 2022
1 parent 9adc373 commit e525b5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hyphe_frontend/app/js/service_utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -665,10 +665,10 @@ angular.module('hyphe.service_utils', [])
} else if(job.crawling_status != 'FINISHED'){
job.globalStatus = job.crawling_status
} else if(job.indexing_status == 'FINISHED'){
if(job.nb_crawled_pages_200 > 2){
if(job.nb_crawled_pages_200 > 10){
job.globalStatus = 'ACHIEVED'
} else if(job.nb_crawled_pages_200 > 0) {
if (job.crawl_arguments.max_depth > 0) {
if (job.crawl_arguments.max_depth > 0 && job.nb_links / job.nb_crawled_pages_200 < 10) {
job.globalStatus = 'SUSPICIOUS'
} else {
job.globalStatus = 'ACHIEVED'
Expand Down

0 comments on commit e525b5e

Please sign in to comment.