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:
parent
31e454f284
commit
5b8cf6b932
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue