Skip to content

Commit

Permalink
Merge pull request facebook#133 from danielin917/master
Browse files Browse the repository at this point in the history
Fix DEBUG build error due to long -> unsigned long long conversion
  • Loading branch information
dhruba authored Jul 20, 2021
2 parents 79603c0 + 544dbdc commit d672e15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cloud/cloud_file_cache.cc
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ void CloudEnvImpl::FileCachePurge() {

void CloudEnvImpl::log(InfoLogLevel level, const std::string& fname,
const std::string& msg) {
long usage = cloud_env_options.sst_file_cache->GetUsage();
long capacity = cloud_env_options.sst_file_cache->GetCapacity();
uint64_t usage = cloud_env_options.sst_file_cache->GetUsage();
uint64_t capacity = cloud_env_options.sst_file_cache->GetCapacity();
long percent = (capacity > 0 ? (100L * usage / capacity) : 0);
Log(level, info_log_,
"[%s] FileCache %s %s cache-used %" PRIu64 "/%" PRIu64 "(%ld%%) bytes",
Expand Down

0 comments on commit d672e15

Please sign in to comment.