Skip to content

Commit

Permalink
cr2
Browse files Browse the repository at this point in the history
  • Loading branch information
remibettan committed May 23, 2024
1 parent 14fe1a4 commit 4e26e93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fw-update/fw-update-device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ namespace librealsense

float update_device::compute_progress(float progress, float start, float end, float threshold) const
{
if (threshold < 1.f && threshold > -1.f)
if (threshold < 1.f)
throw std::invalid_argument("Avoid division by zero");
return start + (ceil(progress * threshold) / threshold) * (end - start) / 100.f;
}
Expand Down

0 comments on commit 4e26e93

Please sign in to comment.