probe_speicher: exe option
This commit is contained in:
@@ -41,7 +41,8 @@ def main(argv):
|
||||
if os.path.exists(AUS + "/stop"):
|
||||
return 1
|
||||
time.sleep(60)
|
||||
argv_m = [EXE, "decke", "sechs100", GRUND, "2000-600-400", "200", GRUND + "/sechs100-v2.bin", D + "/poolwelt/welt_v4.json",
|
||||
exe = opt.get("exe", EXE)
|
||||
argv_m = [exe, "decke", "sechs100", GRUND, "2000-600-400", "200", GRUND + "/sechs100-v2.bin", D + "/poolwelt/welt_v4.json",
|
||||
"mix", "1.0", "0.01", faeden, mio, "teil=voll", "zerlegen=1", "gb=" + gb, "plaetze=" + plaetze]
|
||||
log = open(AUS + "/probe_speicher.jsonl", "a")
|
||||
t0 = time.time()
|
||||
@@ -50,7 +51,7 @@ def main(argv):
|
||||
stdout=aus, stderr=subprocess.DEVNULL, start_new_session=True, env=dict(os.environ, MOTOR_FLACH="1"))
|
||||
spitze, grund = 0.0, ""
|
||||
while p.poll() is None:
|
||||
kind = subprocess.run(["pgrep", "-n", "-f", EXE + " decke"], capture_output=True, text=True).stdout.strip()
|
||||
kind = subprocess.run(["pgrep", "-n", "-f", exe + " decke"], capture_output=True, text=True).stdout.strip()
|
||||
ab = abdruck_gb(kind) if kind else None
|
||||
if ab is not None:
|
||||
spitze = max(spitze, ab)
|
||||
|
||||
Reference in New Issue
Block a user