diff options
| author | xiphon <xiphon@protonmail.com> | 2020-02-16 02:52:53 +0000 |
|---|---|---|
| committer | xiphon <xiphon@protonmail.com> | 2020-02-16 13:55:08 +0000 |
| commit | 98abdaa5d54daeb506acefeff901d8c4ba5c9eb6 (patch) | |
| tree | 4a039b44d4d9e4f7db3346cd2d3a05525594434e /src/daemon | |
| parent | eb7fae92ef0ed01a1d17e56fac217c6450716ccc (diff) | |
| download | monzero-gui-98abdaa5d54daeb506acefeff901d8c4ba5c9eb6.tar.gz monzero-gui-98abdaa5d54daeb506acefeff901d8c4ba5c9eb6.tar.xz monzero-gui-98abdaa5d54daeb506acefeff901d8c4ba5c9eb6.zip | |
build: fix all warnings, treat warnings as errors
Diffstat (limited to 'src/daemon')
| -rw-r--r-- | src/daemon/DaemonManager.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/daemon/DaemonManager.cpp b/src/daemon/DaemonManager.cpp index 8d995458..4b873dc5 100644 --- a/src/daemon/DaemonManager.cpp +++ b/src/daemon/DaemonManager.cpp @@ -27,6 +27,7 @@ // THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include "DaemonManager.h" +#include <QElapsedTimer> #include <QFile> #include <QThread> #include <QFileInfo> @@ -36,7 +37,6 @@ #include <QtConcurrent/QtConcurrent> #include <QApplication> #include <QProcess> -#include <QTime> #include <QStorageInfo> #include <QVariantMap> #include <QVariant> @@ -173,8 +173,8 @@ bool DaemonManager::stop(NetworkType::Type nettype) bool DaemonManager::startWatcher(NetworkType::Type nettype) const { // Check if daemon is started every 2 seconds - QTime timer; - timer.restart(); + QElapsedTimer timer; + timer.start(); while(true && !m_app_exit && timer.elapsed() / 1000 < DAEMON_START_TIMEOUT_SECONDS ) { QThread::sleep(2); if(!running(nettype)) { |
