Commit 8c9afab8 authored by Juergen Enge's avatar Juergen Enge

errornew corrected

parent 011290ab
Pipeline #17737 passed with stages
in 2 minutes and 5 seconds
......@@ -156,10 +156,11 @@ func (cr *Crawler) CrawlError() error {
sqlstr := fmt.Sprintf("SELECT sig AS signature, uri, access, proto AS protocol, `status` "+
" FROM %s.entities"+
" WHERE status='error'"+
" AND lastcheck > TIMESTAMPADD(SECOND, ?, NOW())"+
" AND lastcheck < TIMESTAMPADD(SECOND, ?, NOW())"+
" ORDER BY lastchange ASC", cr.schema)
for {
entries, err := cr.getEntries(sqlstr, int64(cr.crawlErrorNew/time.Second))
entries, err := cr.getEntries(sqlstr, int64(cr.crawlErrorNew/time.Second), int64(cr.crawlError/time.Second))
if err != nil {
return emperror.Wrapf(err, "cannot get new entries")
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment