pike.git / lib / modules / Search.pmod / Utils.pmod

version» Context lines:

pike.git/lib/modules/Search.pmod/Utils.pmod:1:   // This file is part of Roxen Search   // Copyright © 2001 Roxen IS. All rights reserved.   // - // $Id: Utils.pmod,v 1.39 2003/08/15 13:58:48 mattias Exp $ + // $Id: Utils.pmod,v 1.40 2003/09/26 13:30:40 anders Exp $      #if !constant(report_error)   #define report_error werror   #define report_debug werror   #define report_warning werror   #endif      #ifdef SEARCH_DEBUG   # define WERR(X) report_debug("search: "+(X)+"\n");   #else
pike.git/lib/modules/Search.pmod/Utils.pmod:489:    int next = dbp->next_crawl();    if(next != -1) {    crawl_queue[dbp->id] = next;    WERR(" Crawl: "+(next-time()));    }    next = dbp->next_compact();    if(next != -1) {    compact_queue[dbp->id] = next;    WERR(" Compact: "+(next-time()));    } -  WERR("\n"); +  WERR("");    }       if(!sizeof(crawl_queue) && !sizeof(compact_queue)) return;    next_run = min( @values(crawl_queue)+values(compact_queue)+values(entry_queue) );    reschedule();    }      #if constant (roxen)    private void reschedule() {    if( schedule_process )