Skip to content
New issue

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

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

Already on GitHub? # to your account

Fix max_folder_size not working for smaller worlds #172

Merged
merged 1 commit into from
Jan 3, 2025
Merged

Conversation

Lyfts
Copy link
Member

@Lyfts Lyfts commented Jan 3, 2025

The max_folder_size size option worked fine if you happen to have a world larger than 1gb, but didn't work at all for smaller worlds as FileUtils.getSize(file, SizeUnit.GB) would return 0. This changes it to just deal with the sizes in bytes which is the more sane way to do it anyways.

Closes GTNewHorizons/GT-New-Horizons-Modpack#18613

Signed-off-by: Lyfts <127234178+Lyfts@users.noreply.github.com>
@Lyfts Lyfts requested a review from a team January 3, 2025 20:41
@Caedis
Copy link
Member

Caedis commented Jan 3, 2025

Was wondering if that method was rounding to the nearest gb

@Lyfts Lyfts merged commit d38e849 into master Jan 3, 2025
1 check passed
@Lyfts Lyfts deleted the fix-backup branch January 3, 2025 20:54
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

backup fails to follow max_folder_size under serverutilities.cfg
2 participants