From dd7f53a16b04b6dab8ada7541b4ee4fa2a48435a Mon Sep 17 00:00:00 2001 From: Dmitri Naumov <dmitri.naumov@ufz.de> Date: Wed, 3 Mar 2021 15:23:48 +0100 Subject: [PATCH] [App/U] Fix memory info message type and prefix. --- Applications/Utils/FileConverter/FEFLOW2OGS.cpp | 2 +- Applications/Utils/FileConverter/GMSH2OGS.cpp | 2 +- Applications/Utils/MeshEdit/checkMesh.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Applications/Utils/FileConverter/FEFLOW2OGS.cpp b/Applications/Utils/FileConverter/FEFLOW2OGS.cpp index 52d216c4d81..f060e7087fb 100644 --- a/Applications/Utils/FileConverter/FEFLOW2OGS.cpp +++ b/Applications/Utils/FileConverter/FEFLOW2OGS.cpp @@ -80,7 +80,7 @@ int main (int argc, char* argv[]) } #ifndef WIN32 unsigned long mem_with_mesh (mem_watch.getVirtMemUsage()); - INFO("Mem for mesh: {:i} MB", + INFO("Mem for mesh: {} MiB", (mem_with_mesh - mem_without_mesh) / (1024 * 1024)); #endif INFO("Time for reading: {:f} seconds.", run_time.elapsed()); diff --git a/Applications/Utils/FileConverter/GMSH2OGS.cpp b/Applications/Utils/FileConverter/GMSH2OGS.cpp index 17fe9c7dfe4..a207ab6c2af 100644 --- a/Applications/Utils/FileConverter/GMSH2OGS.cpp +++ b/Applications/Utils/FileConverter/GMSH2OGS.cpp @@ -92,7 +92,7 @@ int main (int argc, char* argv[]) return -1; } #ifndef WIN32 - INFO("Mem for mesh: {:i} MB", + INFO("Mem for mesh: {} MiB", (mem_watch.getVirtMemUsage() - mem_without_mesh) / (1024 * 1024)); #endif diff --git a/Applications/Utils/MeshEdit/checkMesh.cpp b/Applications/Utils/MeshEdit/checkMesh.cpp index c556ba6efdb..6b7bc4c5be8 100644 --- a/Applications/Utils/MeshEdit/checkMesh.cpp +++ b/Applications/Utils/MeshEdit/checkMesh.cpp @@ -64,7 +64,7 @@ int main(int argc, char* argv[]) const unsigned long mem_with_mesh(mem_watch.getVirtMemUsage()); if (mem_with_mesh > 0) { - INFO("Memory size: {:i} MB", + INFO("Memory size: {} MiB", (mem_with_mesh - mem_without_mesh) / (1024 * 1024)); (void)mem_with_mesh; } -- GitLab