Beispiel #1
0
def enrich_greynoise():
  from class_greynoise import greynoise
  g = greynoise()
  run = True
  nTotal = 0
  while(run):
    nRes = enrich_greynoiseSet(g)
    nTotal = nRes + nTotal
    if nRes == 0: run = False
  return(nTotal)
Beispiel #2
0
def enrich_greynoise():
    from class_greynoise import greynoise
    g = greynoise()
    run = True
    nTotal = 0
    rTt = 0
    while (run):
        nRes, rT = enrich_greynoiseSet(g)
        nTotal = nRes + nTotal
        rTt = rTt + rT
        if nRes == 0:
            run = False
        else:
            #we might need a sleep here in order to allow ES to solve it's stuff. We could also just stop running as we would be restarted in a minute...
            #sleep(60)
            run = False  # decided to never loop, cron will restart anyhows
    return (nTotal, rTt)