floor를 intdiv로 변경

This commit is contained in:
Hide_D committed 2018-04-08 19:46:26 +09:00
1 parent f060716a3c
commit ba4ff29e4a
36 files changed
+291 -256

No files matched your search

+2 -2
View File
@@ -272,8 +272,8 @@ function getTrafficColor($per)
function getHex($dec)
{
$hex = floor($dec * 255 / 100);
$code = getHexCode(floor($hex / 16));
$hex = intdiv($dec * 255, 100);
$code = getHexCode(intdiv($hex, 16));
$code .= getHexCode($hex % 16);
return $code;
}