Skip to content

Commit 051b8c4

Browse files
ilya-fedinjohn-preston
authored andcommitted
Limit malloc_trim to once per 10 seconds
1 parent c2f5e7e commit 051b8c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Telegram/SourceFiles/platform/linux/integration_linux.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ LinuxIntegration::LinuxIntegration()
183183
return timer;
184184
}();
185185

186-
if (timer.hasExpired(1000)) {
186+
if (timer.hasExpired(10000)) {
187187
malloc_trim(0);
188188
timer.start();
189189
}

0 commit comments

Comments
 (0)