From 6fd02c2e5243bbcd4946dca0f1455c2351f053e3 Mon Sep 17 00:00:00 2001 From: Matthew Date: Sun, 2 Jun 2024 09:00:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=BD=AC=E4=B9=89=EF=BC=88?= =?UTF-8?q?=EF=BC=9F=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/cpp/PhoneDevice.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/cpp/PhoneDevice.cpp b/app/src/main/cpp/PhoneDevice.cpp index 09a98c7a..ab88b879 100644 --- a/app/src/main/cpp/PhoneDevice.cpp +++ b/app/src/main/cpp/PhoneDevice.cpp @@ -391,12 +391,12 @@ bool CPhoneDevice::SelfTest(std::string& result) double fr = ((double)si.available * 100.0f) / ((double)si.capacity); result += "存储剩余:"; result += std::to_string((int)fr); - result += "%\r\n"; + result += "%%\r\n"; long fm = android_os_Process_getFreeMemory(); long tm = android_os_Process_getTotalMemory(); double fmp = ((double)fm * 100.0f) / ((double)tm); - result += std::string("可用内存:") + std::to_string((int)fmp) + std::string("%\r\n"); + result += std::string("可用内存:") + std::to_string((int)fmp) + std::string("%%\r\n"); return true; }