Commit 7aaf0a5b authored by juga's avatar juga Committed by Matt Traudt
Browse files

Check disk space before running generate

parent 1054eea6
......@@ -21,6 +21,9 @@ import logging
import requests
import random
from ..util.fs import is_low_space
rng = random.SystemRandom()
end_event = Event()
log = logging.getLogger(__name__)
......@@ -377,6 +380,9 @@ def gen_parser(sub):
def main(args, conf):
if is_low_space(conf):
exit(1)
if conf.getint('scanner', 'measurement_threads') < 1:
fail_hard('Number of measurement threads must be larger than 1')
......
Supports Markdown
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