[hostinfo] Add host RAM to GS

main
Adriaan de Groot 7 years ago
parent 22a9fb89e8
commit 2b8d04ffc1

@ -22,6 +22,7 @@
#include "JobQueue.h"
#include "utils/CalamaresUtilsSystem.h"
#include "utils/Logger.h"
#include "utils/Units.h"
#include <QDir>
#include <QFile>
@ -155,6 +156,12 @@ HostInfoJob::exec()
gs->insert( "hostOSName", hostOSName() );
gs->insert( "hostCPU", hostCPU() );
auto ram = CalamaresUtils::BytesToMiB( CalamaresUtils::System::instance()->getTotalMemoryB().first );
if ( ram )
{
gs->insert( "hostRAMMiB", ram );
}
return Calamares::JobResult::ok();
}

Loading…
Cancel
Save