diff options
author | Paul Sherwood <paul.sherwood@codethink.co.uk> | 2015-09-12 17:39:31 +0000 |
---|---|---|
committer | Paul Sherwood <paul.sherwood@codethink.co.uk> | 2015-09-12 17:39:31 +0000 |
commit | 3e79a196f5313b71a270ca351ae2ffcb5f3edc1e (patch) | |
tree | 708fa3bf0bf62b3b3dee9678bac5ce5de4429729 /ybd.py | |
parent | 1a90e16db34bd049d508ef34e1566f529bc3c7a4 (diff) | |
download | ybd-3e79a196f5313b71a270ca351ae2ffcb5f3edc1e.tar.gz |
Move cleanup outside the TOTAL timer
Diffstat (limited to 'ybd.py')
-rwxr-xr-x | ybd.py | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -30,11 +30,10 @@ import sandboxlib print('') -with app.timer('TOTAL'): - app.setup(sys.argv) - - app.cleanup(app.config['tmp']) +app.setup(sys.argv) +app.cleanup(app.config['tmp']) +with app.timer('TOTAL'): lockfile = open(os.path.join(app.config['base'], 'lock'), 'r') fcntl.flock(lockfile, fcntl.LOCK_SH | fcntl.LOCK_NB) |