From 848c5cca715c514ce6e57e0fa7ef8e71b09c0b08 Mon Sep 17 00:00:00 2001 From: Paul Oliver Date: Mon, 25 May 2026 23:00:48 +0200 Subject: Updates sql_exec function to allow reading data --- data/client.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'data') diff --git a/data/client.cpp b/data/client.cpp index 65494b0..730ea7a 100644 --- a/data/client.cpp +++ b/data/client.cpp @@ -57,8 +57,7 @@ ImPlotStyle *g_implot_style; // Data globals const char *g_x_axes[] = { - "rowid", - "steps", + "step", #define FOR_CORE(i) "cycl_" #i, FOR_CORES #undef FOR_CORE @@ -272,7 +271,7 @@ void gui_print_data_col(void) { if (ImGui::InputInt("nth", &g_nth, 0, 0, ImGuiInputTextFlags_CharsDecimal)) data_touched(); if (ImGui::BeginCombo("x-axis", g_x_axes[g_x_axis])) { - for (int i = 0; i < CORES + 2; i++) { + for (int i = 0; i < CORES + 1; i++) { if (ImGui::Selectable(g_x_axes[i], g_x_axis == i)) { g_x_axis = i; data_touched(); -- cgit v1.3