aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorPaul Oliver <contact@pauloliver.dev>2026-05-25 23:00:48 +0200
committerPaul Oliver <contact@pauloliver.dev>2026-05-25 23:00:48 +0200
commit848c5cca715c514ce6e57e0fa7ef8e71b09c0b08 (patch)
tree7eb840e773c068a23819b03819d06ff2901c5b5b /data
parentbace2d7f20acc609d552a80bb018939d5e8afab8 (diff)
Updates sql_exec function to allow reading data
Diffstat (limited to 'data')
-rw-r--r--data/client.cpp5
1 files changed, 2 insertions, 3 deletions
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();