diff --git a/src/plugins/screencast/screencaststream.cpp b/src/plugins/screencast/screencaststream.cpp index 12d5bcc2a9..44fc7d71f8 100644 --- a/src/plugins/screencast/screencaststream.cpp +++ b/src/plugins/screencast/screencaststream.cpp @@ -437,7 +437,7 @@ void ScreenCastStream::recordFrame(const QRegion &_damagedRegion) } if (m_videoFormat.max_framerate.num != 0 && !m_lastSent.isNull()) { - auto frameInterval = (1000. * m_videoFormat.max_framerate.denom / m_videoFormat.max_framerate.num); + auto frameInterval = (1000 * m_videoFormat.max_framerate.denom / m_videoFormat.max_framerate.num); auto lastSentAgo = m_lastSent.msecsTo(QDateTime::currentDateTimeUtc()); if (lastSentAgo < frameInterval) { m_pendingDamages += damagedRegion;