1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Android: fix getMemorySizeInMegabytes() returning negative values.

This commit is contained in:
Lukasz Kozakiewicz 2017-09-27 12:34:26 +02:00
parent 31e454f284
commit 5b8cf6b932

View file

@ -407,7 +407,7 @@ int SystemStats::getMemorySizeInMegabytes()
struct sysinfo sysi;
if (sysinfo (&sysi) == 0)
return (static_cast<int> (sysi.totalram * sysi.mem_unit) / (1024 * 1024));
return static_cast<int> ((sysi.totalram * sysi.mem_unit) / (1024 * 1024));
#endif
return 0;