1 diff -Nru qbittorrent-4.5.0.orig/src/app/application.cpp qbittorrent-4.5.0/src/app/application.cpp
2 --- qbittorrent-4.5.0.orig/src/app/application.cpp 2023-01-14 20:42:09.101483950 +0000
3 +++ qbittorrent-4.5.0/src/app/application.cpp 2023-01-14 20:51:56.094149358 +0000
4 @@ -1036,11 +1036,11 @@
5 // has no effect on linux but it might be meaningful for other OS
8 - if (::getrlimit(RLIMIT_RSS, &limit) != 0)
9 + if (::getrlimit(RLIMIT_VMEM, &limit) != 0)
12 limit.rlim_cur = memoryWorkingSetLimit() * MiB;
13 - if (::setrlimit(RLIMIT_RSS, &limit) != 0)
14 + if (::setrlimit(RLIMIT_VMEM, &limit) != 0)
16 const auto message = QString::fromLocal8Bit(strerror(errno));
17 LogMsg(logMessage.arg(QString::number(errno), message), Log::WARNING);