From 76f52c3bf184b2c20d9dce83f68e6712c63bbd92 Mon Sep 17 00:00:00 2001
From: David Robert Verelst <dave@dtu.dk>
Date: Fri, 5 Aug 2016 10:25:35 +0200
Subject: [PATCH] launch.py in crontab mode does not require to specify nr of
 CPU's by default

---
 launch.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/launch.py b/launch.py
index 107b118..5b767dd 100755
--- a/launch.py
+++ b/launch.py
@@ -105,10 +105,10 @@ def write_crontab():
     cwd = os.getcwd()
     fpath = os.path.join(cwd, 'launch_crontab.sh')
     # TODO: parse other relevant arguments as well: --re
-    # but not the free cpu's etc, they are read from the config file
-    # nr of cpu's is set to 1, but will over written by config file
+    # when using the crontab option, cpu parameters are read from the config
+    # file if it exists
     rpl = (cwd, python, launch)
-    crontab = '*/5 * * * * cd "%s"; %s %s --crontab -n 1;\n' % rpl
+    crontab = '*/5 * * * * cd "%s"; %s %s --crontab ;\n' % rpl
     f = open(fpath, 'w')
     f.write(crontab)
     f.flush()
-- 
GitLab