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:
Eike Ziller
2024-01-19 14:29:20 +01:00
parent 52fb6f925b
commit ed1b6b958a
6 changed files with 12 additions and 8 deletions

View File

@@ -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); });