mirror of
https://github.com/lucky-sideburn/kubeinvaders.git
synced 2026-04-21 01:16:53 +00:00
fix programming mode
This commit is contained in:
@@ -17,7 +17,7 @@ function startGameMode() {
|
||||
document.getElementById("gameContainer").style.height = "100%";
|
||||
//document.getElementById("loadButtonGroup").style.width = "650px";
|
||||
$("#gameModeButton").text("Disable Game Mode");
|
||||
$("#programmingModeButton").text("Enable Prog. Mode (alpha)");
|
||||
$("#programmingModeButton").text("Enable Prog. Mode");
|
||||
programming_mode_switch = false;
|
||||
}
|
||||
if (game_buttons.style.display === "none") {
|
||||
@@ -44,7 +44,7 @@ function startProgrammingMode() {
|
||||
|
||||
if (programming_mode_switch) {
|
||||
programming_mode_switch = false;
|
||||
$("#programmingModeButton").text("Enable Prog. Mode (alpha)");
|
||||
$("#programmingModeButton").text("Enable Prog. Mode");
|
||||
} else {
|
||||
document.getElementById("gameContainer").style.width = "100%";
|
||||
document.getElementById("gameContainer").style.height = "100%";
|
||||
|
||||
@@ -137,7 +137,7 @@ for exp in parsed_yaml["experiments"]:
|
||||
if 'additional-labels' in job_attrs and 'chaos-codename' in job_attrs['additional-labels']:
|
||||
codename = job_attrs['additional-labels']['chaos-codename']
|
||||
metric_job_name = job_name.replace("-","_");
|
||||
r.set(f"chaos_jobs_status:{codename}:{exp['name']}:{job_name}", 0.0)
|
||||
r.set(f"chaos_jobs_status:{codename}:{exp['name']}:{metric_job_name}", 0.0)
|
||||
|
||||
if r.exists('chaos_node_jobs_total') == 1:
|
||||
r.incr('chaos_node_jobs_total')
|
||||
|
||||
Reference in New Issue
Block a user