Skip to content

Commit

Permalink
Merge pull request #11 from argonne-lcf/max_cacheable_byte_fix
Browse files Browse the repository at this point in the history
max cacheable byte size int->unsigned long int
  • Loading branch information
kaushikvelusamy authored Sep 13, 2024
2 parents e4f74d6 + 54eeb93 commit 7700c71
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/fs/constants.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class Constants {
static inline std::optional<std::string> 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<std::string> nodefile{std::nullopt};
static inline std::string network_type{"cxi"};
Expand Down
2 changes: 1 addition & 1 deletion src/fs/util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ std::vector<std::string> 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") {
Expand Down

0 comments on commit 7700c71

Please sign in to comment.