snapshot_test: Fix overflow in statvfs arithmetics am: 2612f9b116
Change-Id: Ifcb544bd30ee55d9d23b54b1e2a8c5f94f8ebb14
This commit is contained in:
commit
0006be8a6c
1 changed files with 2 additions and 2 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue