diff --git a/ReleaseNotes.md b/ReleaseNotes.md index d64b925a4039efde4cb19a36dbfc8b204ef1e03f..76636a0b18fcbfc77cafc48c8eb1466258e2e214 100644 --- a/ReleaseNotes.md +++ b/ReleaseNotes.md @@ -18,6 +18,7 @@ - cta/CTA#682 - Generate taped's log file with correct owner and group - cta/CTA#683 - Fix problems with field consistency in json logging - cta/CTA#688 - Fix tapeserver umask to allow directory creation in POSIX filesystems +- cta/CTA#466 - Changed `cta.archivefile.max_size_gb` to correctly use powers of 1000 instead of 1024 ### Continuous Integration - cta/CTA#615 - Going to xrdfs xattr API for EOS5 extended attribute tests (EOS >= 5.2.17) diff --git a/frontend/common/FrontendService.cpp b/frontend/common/FrontendService.cpp index 683dfa482f39f25263e4dcd81a1c37b85f08b2a5..90d319f123bb3e84efb3e798c5c8e63c4b31d0b5 100644 --- a/frontend/common/FrontendService.cpp +++ b/frontend/common/FrontendService.cpp @@ -180,7 +180,7 @@ FrontendService::FrontendService(const std::string& configFilename) : m_archiveF // Initialise the Frontend auto archiveFileMaxSize = config.getOptionValueUInt("cta.archivefile.max_size_gb"); // Convert archiveFileMaxSize from GB to bytes - m_archiveFileMaxSize = archiveFileMaxSize.has_value() ? static_cast<uint64_t>(archiveFileMaxSize.value()) * 1024 * 1024 * 1024 : 0; + m_archiveFileMaxSize = archiveFileMaxSize.has_value() ? static_cast<uint64_t>(archiveFileMaxSize.value()) * 1000 * 1000 * 1000 : 0; { // Log cta.archivefile.max_size_gb