Permalink
Browse files

Change the about gui to use "hw.physmem" instead of "hw.realmem" for …

…the memory size output. This should fix the problem of reporting more memory than the system actually has.
  • Loading branch information...
Ken Moore
Ken Moore committed Sep 23, 2013
1 parent 5bd70b2 commit 7ba4ea7056c79f3b829a18fc913983b53a8ab580
Showing with 1 addition and 1 deletion.
  1. +1 −1 src-qt4/about-gui/mainwindow.cpp
@@ -108,7 +108,7 @@ MainWindow::MainWindow(QWidget *parent) :
ui->CPUInfoLabel->setText(pcbsd::Utils::sysctl("hw.model"));
// memory
- ui->MemoryLabel->setText(pcbsd::Utils::bytesToHumanReadable(pcbsd::Utils::sysctlAsInt("hw.realmem")));
+ ui->MemoryLabel->setText(pcbsd::Utils::bytesToHumanReadable(pcbsd::Utils::sysctlAsInt("hw.physmem")));
//this->setFixedSize(this->geometry().width(),this->geometry().height());
}

0 comments on commit 7ba4ea7

Please sign in to comment.