diff options
| author | ruki <[email protected]> | 2022-05-21 00:33:57 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-05-21 00:33:57 +0800 |
| commit | 2f45397ee666ff48c7bd7046c70a66bff37d47c6 (patch) | |
| tree | 6771fee5ee44292eb452f6e16eed8fbd6a7e574b /xmake/modules/private/cache/build_cache.lua | |
| parent | 0d7fb59547359ce725e83be919cda40204ac0893 (diff) | |
fix rate
Diffstat (limited to 'xmake/modules/private/cache/build_cache.lua')
| -rw-r--r-- | xmake/modules/private/cache/build_cache.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
