From 54eeb93c4d93d875d3f5f7877efdafa4169da2dc Mon Sep 17 00:00:00 2001 From: TheAssembler1 Date: Fri, 13 Sep 2024 18:10:44 -0400 Subject: [PATCH] max cacheable byte size int->unsigned long int --- src/fs/constants.h | 2 +- src/fs/util.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fs/constants.h b/src/fs/constants.h index 2ae2a72c..f03c1821 100644 --- a/src/fs/constants.h +++ b/src/fs/constants.h @@ -17,7 +17,7 @@ class Constants { static inline std::optional log_output_dir{std::nullopt}; static inline std::string my_hostname; static inline int es{1}; - static inline int max_cacheable_byte_size{1048576}; + static inline unsigned long int max_cacheable_byte_size{1048576}; static inline int address_write_sync_time{5}; static inline std::optional nodefile{std::nullopt}; static inline std::string network_type{"cxi"}; diff --git a/src/fs/util.cpp b/src/fs/util.cpp index 460e0432..22ff42ce 100644 --- a/src/fs/util.cpp +++ b/src/fs/util.cpp @@ -97,7 +97,7 @@ std::vector Util::process_args(const int argc, char* argv[]) { throw std::runtime_error("no argument after -max_cacheable_byte_size"); } - Constants::max_cacheable_byte_size = std::stoi(std::string(argv[i + 1])); + Constants::max_cacheable_byte_size = std::stoul(std::string(argv[i + 1])); LOG(DEBUG) << "-max_cacheable_byte_size was found: " << Constants::max_cacheable_byte_size << std::endl; i += 2; } else if(original_string_args[i] == "-net_type") {