Improve comments as per review

This commit is contained in:
Ankita Kejriwal 2023-02-22 17:13:44 -08:00
parent 8aafbfe6cc
commit 64ac92bd4b
1 changed files with 3 additions and 2 deletions

View File

@ -1073,8 +1073,9 @@ ACTOR Future<bool> checkExclusion(Database db,
return false; return false;
} }
// The numerator is the total space in use by FDB that is not immediately reusable; // The numerator is the total space in use by FDB that is not immediately reusable.
// the denominator is the total space usable by FDB (either used or unused currently) // This is calculated as: used + free - available = used + free - (free - reusable) = used - reusable.
// The denominator is the total capacity usable by FDB (either used or unused currently).
double finalUnavailableRatio = (totalKvStoreUsedBytes + totalKvStoreFreeBytes - totalKvStoreAvailableBytes) / double finalUnavailableRatio = (totalKvStoreUsedBytes + totalKvStoreFreeBytes - totalKvStoreAvailableBytes) /
(totalKvStoreUsedBytesNonExcluded + totalKvStoreFreeBytesNotExcluded); (totalKvStoreUsedBytesNonExcluded + totalKvStoreFreeBytesNotExcluded);