[Differential] [Commented On] D4595: Port from QDateTime::currentDateTime() to QElapsedTimer

David Faure noreply at phabricator.kde.org
Mon Feb 13 22:22:14 UTC 2017


dfaure added inline comments.

INLINE COMMENTS

> slave.cpp:190
>      if (d->m_pid && KIOPrivate::isProcessAlive(d->m_pid)) {
> -        int delta_t = d->contact_started.secsTo(QDateTime::currentDateTime());
> +        int delta_t = d->contact_started.elapsed();
>          //qDebug() << "slave is slow... pid=" << d->m_pid << " t=" << delta_t;

Oops, elapsed() returns milliseconds, so this was missing a divide by 1000. Added now in https://commits.kde.org/kio/24ff23c6943b1156f29c80de5586db73bee7d2f5

REPOSITORY
  R241 KIO

REVISION DETAIL
  https://phabricator.kde.org/D4595

EMAIL PREFERENCES
  https://phabricator.kde.org/settings/panel/emailpreferences/

To: dfaure, apol
Cc: #frameworks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20170213/fad23388/attachment.html>


More information about the Kde-frameworks-devel mailing list