Skip to content

Commit

Permalink
HCK-3553: remove unnecessary statement
Browse files Browse the repository at this point in the history
  • Loading branch information
dannleed committed Jul 18, 2023
1 parent 16514cd commit 1db40ae
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions reverse_engineering/cassandraHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -1056,10 +1056,6 @@ module.exports = (_) => {


const getSampleDocSize = (count, recordSamplingSettings) => {
if (recordSamplingSettings.active === 'absolute') {
return Number(recordSamplingSettings.absolute.value);
}

const limit = Math.ceil((count * recordSamplingSettings.relative.value) / 100);

return Math.min(limit, recordSamplingSettings.maxValue);
Expand Down

0 comments on commit 1db40ae

Please sign in to comment.