summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorWunkolo <Wunkolo@gmail.com>2021-12-15 08:49:25 +0100
committerWunkolo <Wunkolo@gmail.com>2021-12-15 08:57:33 +0100
commit44b3abdfc0d746a13443b3c386f0ce971d0148ce (patch)
treebb3ed9be9344d37bbdf4eb7456813246bda3da1f /src
parentMerge pull request #7565 from liushuyu/fix-linux-decoding (diff)
downloadyuzu-44b3abdfc0d746a13443b3c386f0ce971d0148ce.tar
yuzu-44b3abdfc0d746a13443b3c386f0ce971d0148ce.tar.gz
yuzu-44b3abdfc0d746a13443b3c386f0ce971d0148ce.tar.bz2
yuzu-44b3abdfc0d746a13443b3c386f0ce971d0148ce.tar.lz
yuzu-44b3abdfc0d746a13443b3c386f0ce971d0148ce.tar.xz
yuzu-44b3abdfc0d746a13443b3c386f0ce971d0148ce.tar.zst
yuzu-44b3abdfc0d746a13443b3c386f0ce971d0148ce.zip
Diffstat (limited to 'src')
-rw-r--r--src/yuzu/main.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp
index cc84ea11c..df736513b 100644
--- a/src/yuzu/main.cpp
+++ b/src/yuzu/main.cpp
@@ -77,6 +77,7 @@ static FileSys::VirtualFile VfsDirectoryCreateFileWrapper(const FileSys::Virtual
#include "common/fs/fs.h"
#include "common/fs/fs_paths.h"
#include "common/fs/path_util.h"
+#include "common/literals.h"
#include "common/logging/backend.h"
#include "common/logging/filter.h"
#include "common/logging/log.h"
@@ -134,6 +135,8 @@ static FileSys::VirtualFile VfsDirectoryCreateFileWrapper(const FileSys::Virtual
#include "yuzu/main.h"
#include "yuzu/uisettings.h"
+using namespace Common::Literals;
+
#ifdef USE_DISCORD_PRESENCE
#include "yuzu/discord_impl.h"
#endif
@@ -259,10 +262,9 @@ GMainWindow::GMainWindow()
LOG_INFO(Frontend, "Host CPU: {}", cpu_string);
#endif
LOG_INFO(Frontend, "Host OS: {}", QSysInfo::prettyProductName().toStdString());
- LOG_INFO(Frontend, "Host RAM: {:.2f} GB",
- Common::GetMemInfo().TotalPhysicalMemory / 1024.0f / 1024 / 1024);
- LOG_INFO(Frontend, "Host Swap: {:.2f} GB",
- Common::GetMemInfo().TotalSwapMemory / 1024.0f / 1024 / 1024);
+ LOG_INFO(Frontend, "Host RAM: {:.2f} GiB",
+ Common::GetMemInfo().TotalPhysicalMemory / f64{1_GiB});
+ LOG_INFO(Frontend, "Host Swap: {:.2f} GiB", Common::GetMemInfo().TotalSwapMemory / f64{1_GiB});
UpdateWindowTitle();
show();