to function taking std::string.
failed(STATS_ERROR);
}
stats_update_size(ctx,
- ctx.stats_file.c_str(),
+ ctx.stats_file,
new_dest_stat.size_on_disk()
- orig_dest_stat.size_on_disk(),
orig_dest_stat ? 0 : 1);
uint64_t new_size =
Stat::stat(cache_file.path(), Stat::OnError::log).size_on_disk();
- stats_update_size(ctx, stats_file.c_str(), new_size - old_size, 0);
+ stats_update_size(ctx, stats_file, new_size - old_size, 0);
cc_log("Recompression of %s done", cache_file.path().c_str());
}
auto new_stat = Stat::stat(raw_file);
stats_update_size(ctx,
- ctx.stats_file.c_str(),
+ ctx.stats_file,
new_stat.size_on_disk() - old_stat.size_on_disk(),
(new_stat ? 1 : 0) - (old_stat ? 1 : 0));
}