From 2f45397ee666ff48c7bd7046c70a66bff37d47c6 Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 21 May 2022 00:33:57 +0800 Subject: fix rate --- xmake/modules/private/cache/build_cache.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmake/modules/private/cache/build_cache.lua b/xmake/modules/private/cache/build_cache.lua index 6d7a0102f..d6b4082d5 100644 --- a/xmake/modules/private/cache/build_cache.lua +++ b/xmake/modules/private/cache/build_cache.lua @@ -80,7 +80,7 @@ function hitrate() local hit_count = (_g.hit_count or 0) local total_count = (_g.total_count or 0) if total_count > 0 then - return hit_count * 100 / total_count + return math.floor(hit_count * 100 / total_count) end return 0 end -- cgit v1.3.1