增加转义(?)

hdrplus
Matthew 1 year ago
parent 5faeadce9d
commit 6fd02c2e52

@ -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;
}

Loading…
Cancel
Save