mirror of
https://github.com/gigablast/open-source-search-engine.git
synced 2024-10-05 04:37:39 +03:00
crawl status updates
This commit is contained in:
parent
1b738466c1
commit
572fa85033
@ -2669,8 +2669,10 @@ bool printCrawlBotPage2 ( TcpSocket *socket ,
|
||||
if ( cx->m_collectiveRespiderFrequency == 0.0 &&
|
||||
! cx->m_globalCrawlInfo.m_hasUrlsReadyToSpider ) {
|
||||
ss = "Crawl has exhausted all urls and "
|
||||
"repeatCrawl is set to 0.0";
|
||||
"repeatCrawl is set to 0.0.";
|
||||
}
|
||||
if ( ! cx->m_spideringEnabled )
|
||||
ss = "Crawl paused.";
|
||||
CrawlInfo *ci = &cx->m_localCrawlInfo;
|
||||
long sentAlert = (long)ci->m_sentCrawlDoneAlert;
|
||||
if ( sentAlert ) sentAlert = 1;
|
||||
@ -2678,7 +2680,7 @@ bool printCrawlBotPage2 ( TcpSocket *socket ,
|
||||
sb.safePrintf("\n\n{"
|
||||
"\"name\":\"%s\",\n"
|
||||
//"\"alias\":\"%s\",\n"
|
||||
"\"crawlingEnabled\":%li,\n"
|
||||
//"\"crawlingEnabled\":%li,\n"
|
||||
"\"crawlStatus\":\"%s\",\n"
|
||||
"\"sentCrawlDoneNotification\":%li,\n"
|
||||
//"\"crawlingPaused\":%li,\n"
|
||||
@ -2699,7 +2701,7 @@ bool printCrawlBotPage2 ( TcpSocket *socket ,
|
||||
//,cx->m_coll
|
||||
, cx->m_diffbotCrawlName.getBufStart()
|
||||
//, alias
|
||||
, (long)cx->m_spideringEnabled
|
||||
//, (long)cx->m_spideringEnabled
|
||||
, ss
|
||||
, sentAlert
|
||||
//, (long)paused
|
||||
|
Loading…
Reference in New Issue
Block a user