Skip to content

Commit

Permalink
Revert "HCK-3553: remove unnecessary statement"
Browse files Browse the repository at this point in the history
This reverts commit fc7573b.
  • Loading branch information
dannleed committed Jul 18, 2023
1 parent bafd889 commit 16514cd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions reverse_engineering/cassandraHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -1056,6 +1056,10 @@ 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
1 change: 0 additions & 1 deletion reverse_engineering/node_modules/.bin/xml2js

This file was deleted.

1 change: 1 addition & 0 deletions reverse_engineering/node_modules/.bin/xml2js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 16514cd

Please sign in to comment.