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