Commit 10d60170 authored by Christoph Feck's avatar Christoph Feck

Correctly show memory sizes > 4 GiB on 32 bit Linux

BUG: 406351
FIXED-IN: 5.16.0

Differential Revision: https://phabricator.kde.org/D20828
parent 55207d9f
......@@ -56,7 +56,7 @@ static qlonglong calculateTotalRam()
struct sysinfo info;
if (sysinfo(&info) == 0)
// manpage "sizes are given as multiples of mem_unit bytes"
ret = info.totalram * info.mem_unit;
ret = qlonglong(info.totalram) * info.mem_unit;
#elif defined(Q_OS_FREEBSD)
/* Stuff for sysctl */
size_t len;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment