From 00e9f005f5e87d38e2bdf4b8f54935381c0bca35 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Wed, 26 Nov 2025 10:59:07 +0800 Subject: [PATCH] * [refac feedback #10803] Adjust compute waterpolo percent to float. --- module/bi/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/bi/model.php b/module/bi/model.php index 6313434acf..be001d3f73 100755 --- a/module/bi/model.php +++ b/module/bi/model.php @@ -635,7 +635,7 @@ class biModel extends model $molecule = $this->dao->query($moleculeSQL)->fetch(); $denominator = $this->dao->query($denominatorSQL)->fetch(); - $percent = $denominator->count ? round((int)$molecule->count / (int)$denominator->count, 4) : 0; + $percent = $denominator->count ? round((float)$molecule->count / (float)$denominator->count, 4) : 0; $series = array(array('type' => 'liquidFill', 'data' => array($percent), 'color' => array('#2e7fff'), 'outline' => array('show' => false), 'label' => array('fontSize' => 26))); $tooltip = array('show' => true);