Commit 2a77850e authored by Jan Möbius's avatar Jan Möbius
Browse files

Output memory information on windows about dialog

git-svn-id: 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 7595d991
......@@ -124,9 +124,23 @@ void CoreWidget::showAboutWidget( ) {
#ifdef WIN32
aboutWidget_->OpenFlipperAbout->append(tr("Not available for this platform (WIN32)"));
// Define memory structure
// Set the size ( required according to spec ... why???? )
ms.dwLength = sizeof (ms);
// Get the info
// Output to widget
aboutWidget_->OpenFlipperAbout->append(tr("Physical Memory:\t")+ QString::number(ms.ullAvailPhys/1024/1024) + "MB/"+
QString::number(ms.ullTotalPhys/1024/1024) + "MB used ("+
QString::number(ms.dwMemoryLoad) + "%)");
aboutWidget_->OpenFlipperAbout->append(tr("Pagefile Memory:\t")+ QString::number(ms.ullAvailPageFile/1024/1024) + "MB/"
+ QString::number(ms.ullTotalPageFile/1024/1024) + "MB used");
#elif defined ARCH_DARWIN
aboutWidget_->OpenFlipperAbout->append(tr("Not available for this platform (MacOS)"));
Supports Markdown
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