From: Joel Rosdahl Date: Wed, 16 Sep 2020 13:52:55 +0000 (+0200) Subject: Use appropriate type for size delta X-Git-Tag: v4.0~90 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=431cc24b5b4ee29541eb9ef165bcb5c56bf5271a;p=thirdparty%2Fccache.git Use appropriate type for size delta --- diff --git a/src/compress.cpp b/src/compress.cpp index bcc2d4011..b73dfae0c 100644 --- a/src/compress.cpp +++ b/src/compress.cpp @@ -197,7 +197,7 @@ recompress_file(RecompressionStatistics& statistics, atomic_new_file.commit(); auto new_stat = Stat::stat(cache_file.path(), Stat::OnError::log); - const size_t size_delta = + const uint64_t size_delta = (new_stat.size_on_disk() - old_stat.size_on_disk()) / 1024; Statistics::update(stats_file, [=](Counters& cs) { cs.increment(Statistic::cache_size_kibibyte, size_delta);