Skip to content

Commit

Permalink
fix: update downsampling enabled check from "true" to "1"
Browse files Browse the repository at this point in the history
  • Loading branch information
vtx22 committed Mar 7, 2025
1 parent 6344eb4 commit 1bc2ecc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/PlottingWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,7 @@ std::pair<std::vector<double> &, std::vector<double> &> PlottingWindow::get_xy_d
{
auto &d = dataset;

bool downsampling_enabled;
std::istringstream(_config_handler.ini["downsampling"]["enabled"]) >> std::boolalpha >> downsampling_enabled;

bool downsampling_enabled = _config_handler.ini["downsampling"]["enabled"] == "1";
// No downsampling possible
if (d.samples.empty() || d.samples.size() < max_samples || !downsampling_enabled)
{
Expand Down

0 comments on commit 1bc2ecc

Please sign in to comment.