Skip to content

Commit

Permalink
FIX: %/Random
Browse files Browse the repository at this point in the history
  • Loading branch information
grimes2 committed May 27, 2023
1 parent 5ae875d commit 8584fcd
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions foo_preview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ class play_callback_preview : public play_callback_static
std::uniform_int_distribution<> distr(4, (int)preview_length_limit2); // define the range
preview_length2 = distr(gen);
}
if (cfg_total_length_percent_enabled)
else if (cfg_total_length_percent_enabled)
{
cfg_total_length_percent.get(total_length_percent);
preview_end_percent2 = atoi(total_length_percent);
Expand All @@ -308,10 +308,6 @@ class play_callback_preview : public play_callback_static
preview_length2 = atoi(preview_length);
}
}
else {
cfg_preview_length.get(preview_length);
preview_length2 = atoi(preview_length);
}
if (preview_length2 > preview_length_limit2) {
preview_length2 = preview_length_limit2;
FB2K_console_formatter() << "Preview length: " << preview_length2 << "s (limited)";
Expand Down

0 comments on commit 8584fcd

Please sign in to comment.