Commit 7122115c authored by Administrator's avatar Administrator

Merge tag 'index_percent' into develop

no message
parents b2f66310 c92130be
......@@ -47,8 +47,8 @@ class HomepageController extends Controller
'device_alarm' => $device_alarm,
'device_normal' => $device_normal,
'device_offline' => $device_offline,
'percent_alarm' => number_format(($device_alarm/$devicecount) * 100, '2'),
'percent_online' => number_format(($device_online/$devicecount) * 100, '2'),
'percent_alarm' => (float)number_format(($device_alarm/$devicecount) * 100, '2'),
'percent_online' => (float)number_format(($device_online/$devicecount) * 100, '2'),
]);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment