mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 20:50:34 +01:00
Fix to RAM Total info
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user