Fix to RAM Total info

This commit is contained in:
Simon De Backer
2020-08-14 17:03:58 +02:00
parent 84a2a25fa8
commit d556206998

View File

@@ -250,7 +250,7 @@ void Machine_info::init_get_cpu_info_macos()
<< "sysctl -n hw.memsize"); << "sysctl -n hw.memsize");
macosraminfo.waitForFinished(); macosraminfo.waitForFinished();
QString macosRAMOutput = macosraminfo.readAllStandardOutput(); QString macosRAMOutput = macosraminfo.readAllStandardOutput();
pc.ram.Available=QString("RAM Total : %1 MB").arg( pc.ram.Total=QString("RAM Total : %1 MB").arg(
macosRAMOutput.toLongLong() /1024 / 1024); macosRAMOutput.toLongLong() /1024 / 1024);
macosraminfo.close(); macosraminfo.close();
} }