Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix required number in logs #5947

Merged
merged 2 commits into from
Jul 24, 2023
Merged

Fix required number in logs #5947

merged 2 commits into from
Jul 24, 2023

Conversation

deffrian
Copy link
Contributor

Fixes Closes Resolves #
I forgot to divide required value by 100 when it printed to logs

Changes

  • Fix

Types of changes

What types of changes does your code introduce?

  • Bugfix (a non-breaking change that fixes an issue)
  • New feature (a non-breaking change that adds functionality)
  • Breaking change (a change that causes existing functionality not to work as expected)
  • Optimization
  • Refactoring
  • Documentation update
  • Build-related changes
  • Other: Description

Testing

Requires testing

  • Yes
  • No

@@ -182,11 +182,11 @@ private bool HaveEnoughDiskSpaceToRun()
}

long available = _driveInfo?.AvailableFreeSpace ?? 0;
if (available < currentChainSize.Value * ChainSizeThresholdFactor / 100)
if (available < currentChainSize * ChainSizeThresholdFactor / 100)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move it to a variable:
currentChainSize * ChainSizeThresholdFactor / 100?

@deffrian deffrian merged commit a0560bc into master Jul 24, 2023
61 checks passed
@deffrian deffrian deleted the fix/pruning-size-logs branch July 24, 2023 15:02
@kamilchodola kamilchodola restored the fix/pruning-size-logs branch August 18, 2023 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants