From 8e14f1c0b22153faad75bb06972f1cadcf4a2cf1 Mon Sep 17 00:00:00 2001 From: andrew Date: Mon, 4 Dec 2023 11:13:30 -0500 Subject: [PATCH] Only apply default settings at the initial setup of an engine Means that swapping between test modes or tune modes will not reapply the default settings --- OpenBench/static/create_workload.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenBench/static/create_workload.js b/OpenBench/static/create_workload.js index 0dde3f2..e15a3fd 100644 --- a/OpenBench/static/create_workload.js +++ b/OpenBench/static/create_workload.js @@ -183,8 +183,7 @@ function retain_specific_options(engine, preset, workload_type) { function apply_preset(preset, workload_type) { - // Add the defaults to the preset-specific options - const settings = add_defaults_to_preset(get_dev_engine(), preset, workload_type) + const settings = get_presets(get_dev_engine(), preset, workload_type) for (const option in settings) { @@ -221,6 +220,7 @@ function change_engine(engine, target, workload_type) { if (target == 'dev' && workload_type == 'TEST') set_engine(engine, 'base'); + apply_preset('default', workload_type); apply_preset('STC', workload_type); }