diff --git a/src/libsync/clientstatusreporting.cpp b/src/libsync/clientstatusreporting.cpp index fc4bd2f9f42a4..3675612040975 100644 --- a/src/libsync/clientstatusreporting.cpp +++ b/src/libsync/clientstatusreporting.cpp @@ -30,8 +30,8 @@ namespace OCC Q_LOGGING_CATEGORY(lcClientStatusReporting, "nextcloud.sync.clientstatusreporting", QtInfoMsg) ClientStatusReporting::ClientStatusReporting(Account *account, QObject *parent) - : _account(account) - , QObject(parent) + : QObject(parent) + , _account(account) { init(); } @@ -410,6 +410,6 @@ QByteArray ClientStatusReporting::classifyStatus(const Status status) return {}; } int ClientStatusReporting::clientStatusReportingTrySendTimerInterval = 1000 * 60 * 2; // check if the time has come, every 2 minutes -int ClientStatusReporting::repordSendIntervalMs = 24 * 60 * 60 * 1000; // once every 24 hours +quint64 ClientStatusReporting::repordSendIntervalMs = 24 * 60 * 60 * 1000; // once every 24 hours QString ClientStatusReporting::dbPathForTesting; } diff --git a/src/libsync/clientstatusreporting.h b/src/libsync/clientstatusreporting.h index 42cffbf43d0cf..f2f294021181e 100644 --- a/src/libsync/clientstatusreporting.h +++ b/src/libsync/clientstatusreporting.h @@ -84,7 +84,7 @@ private slots: static QByteArray classifyStatus(const Status status); static int clientStatusReportingTrySendTimerInterval; - static int repordSendIntervalMs; + static quint64 repordSendIntervalMs; // this must be set in unit tests on init static QString dbPathForTesting;