* [task#121514] Set the round rate.

This commit is contained in:
dingguodong
2024-07-02 13:17:20 +08:00
committed by 曹延义
parent 0687599de0
commit f0841efc20
+1 -1
View File
@@ -288,7 +288,7 @@ class cneModel extends model
}
}
$metric->rate = $metric->limit != 0 ? $metric->usage / $metric->limit : 0.01;
$metric->rate = $metric->limit != 0 ? round($metric->usage / $metric->limit * 100, 2) : 0.01;
return $metric;
}