NOISSUE set max of java heap spinboxes to detected physical memory

This commit is contained in:
Petr Mrázek
2017-07-11 22:43:35 +02:00
parent 5ea170db78
commit afb0db24a8
4 changed files with 8 additions and 1 deletions

View File

@ -22,7 +22,7 @@
JavaWizardPage::JavaWizardPage(QWidget *parent)
:BaseWizardPage(parent)
{
m_availableMemory = Sys::getSystemRam() / (1024ull * 1024ull);
m_availableMemory = Sys::getSystemRam() / Sys::megabyte;
goodIcon = MMC->getThemedIcon("status-good");
yellowIcon = MMC->getThemedIcon("status-yellow");