Skip to content

Commit

Permalink
Use dynamicMeters not dynamicColumns for populating setup screen
Browse files Browse the repository at this point in the history
Fix recent regression in populating the Available Meters column
for the PCP backend when dynamic meter configurations in use.
  • Loading branch information
natoscott authored and BenBE committed Jul 18, 2024
1 parent 398fb30 commit 4f5293e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AvailableMetersPanel.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ static void AvailableMetersPanel_addDynamicMeter(ATTR_UNUSED ht_key_t key, void*
// Handle (&DynamicMeter_class) entries in the AvailableMetersPanel
static void AvailableMetersPanel_addDynamicMeters(Panel* super, const Settings* settings, unsigned int offset) {
DynamicIterator iter = { .super = super, .id = 1, .offset = offset };
Hashtable* dynamicMeters = settings->dynamicColumns;
Hashtable* dynamicMeters = settings->dynamicMeters;
assert(dynamicMeters != NULL);
Hashtable_foreach(dynamicMeters, AvailableMetersPanel_addDynamicMeter, &iter);
}
Expand Down

0 comments on commit 4f5293e

Please sign in to comment.