forked from qt-creator/qt-creator
ExtensionSystem/Core: Use more std::chrono
It is more descriptive than an int. Change-Id: Ibcb8c3c6210bfa414bb33e36ee401c97ca5fab75 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
@@ -1344,7 +1344,8 @@ void ICorePrivate::init()
|
||||
|
||||
if (HostOsInfo::isLinuxHost()) {
|
||||
m_trimTimer.setSingleShot(true);
|
||||
m_trimTimer.setInterval(60000);
|
||||
using namespace std::chrono_literals;
|
||||
m_trimTimer.setInterval(60s);
|
||||
// glibc may not actually free memory in free().
|
||||
#ifdef Q_OS_LINUX
|
||||
connect(&m_trimTimer, &QTimer::timeout, this, [] { malloc_trim(0); });
|
||||
|
||||
Reference in New Issue
Block a user