Fix Check_Lifetime_Writes on AB devices

Change-Id: Ie1904d9c48639e8ac9f95d9d2dfb1d965c571928
This commit is contained in:
Ethan Yonker
2019-01-17 16:19:24 -06:00
parent 933828251d
commit 54970bb1a9
+3 -1
View File
@@ -3045,7 +3045,9 @@ int TWPartition::Check_Lifetime_Writes() {
Mount_Read_Only = true;
if (Mount(false)) {
Find_Actual_Block_Device();
string block = basename(Actual_Block_Device.c_str());
string temp = Actual_Block_Device;
Find_Real_Block_Device(temp, false);
string block = basename(temp.c_str());
string file = "/sys/fs/" + Current_File_System + "/" + block + "/lifetime_write_kbytes";
string result;
if (TWFunc::Path_Exists(file)) {