floor를 intdiv로 변경

This commit is contained in:
2018-04-08 19:46:26 +09:00
parent f060716a3c
commit ba4ff29e4a
36 changed files with 291 additions and 256 deletions
+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;
}