Skip to content

Commit 6926cf6

Browse files
author
Pashchenkov Maxim
committed
Removed extra cast
1 parent b74d285 commit 6926cf6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

demos/gesture_recognition_demo/cpp_gapi/include/stream_source.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ class CustomCapSource : public cv::gapi::wip::IStreamSource
158158
if (wait_gap) {
159159
const auto cur_step = std::chrono::steady_clock::now() - read_time;
160160
const auto gap = std::chrono::duration_cast<std::chrono::milliseconds>(cur_step).count();
161-
const int time_step = int(1000.f / float(source_fps));
161+
const int time_step = int(1000. / source_fps);
162162
if (gap < time_step) {
163163
std::this_thread::sleep_for(std::chrono::milliseconds(time_step - gap));
164164
}

0 commit comments

Comments
 (0)