Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0006be8a authored by Alessio Balsini's avatar Alessio Balsini Committed by Automerger Merge Worker
Browse files

snapshot_test: Fix overflow in statvfs arithmetics am: 2612f9b1

Change-Id: Ifcb544bd30ee55d9d23b54b1e2a8c5f94f8ebb14
parents 3143c5c2 2612f9b1
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -212,8 +212,8 @@ AssertionResult LowSpaceUserdata::ReadUserdataStats() {
        return AssertionFailure() << strerror(errno);
    }
    bsize_ = buf.f_bsize;
    free_space_ = buf.f_bsize * buf.f_bfree;
    available_space_ = buf.f_bsize * buf.f_bavail;
    free_space_ = bsize_ * buf.f_bfree;
    available_space_ = bsize_ * buf.f_bavail;
    return AssertionSuccess();
}