This commit is contained in:
Lizonghang 2024-12-21 19:01:00 +04:00
parent aa6c352aa2
commit b6fd762fa8

View file

@ -1357,7 +1357,7 @@ static uint64_t device_termux_swappable_memory() {
std::string smaps_path = "/proc/" + std::string(entry->d_name) + "/smaps"; std::string smaps_path = "/proc/" + std::string(entry->d_name) + "/smaps";
std::ifstream smaps_file(smaps_path); std::ifstream smaps_file(smaps_path);
if (!smaps_file.is_open()) { if (!smaps_file.is_open()) {
LOG_WARN("Failed to open smaps file: %s\n", smaps_path.c_str()); LOG_WRN("Failed to open smaps file: %s\n", smaps_path.c_str());
continue; continue;
} }