replace round to ceil

This commit is contained in:
ghost 2024-01-24 02:31:13 +02:00
parent 72ee9ec227
commit 291059ea96

View file

@ -75,7 +75,7 @@ class Month
$this->_node[$i][$l][$j]['height'] = $hours[$i][$l] ? ceil($data['value'] / $hours[$i][$l] * 100) : 0; $this->_node[$i][$l][$j]['height'] = $hours[$i][$l] ? ceil($data['value'] / $hours[$i][$l] * 100) : 0;
break; break;
default: default:
$this->_node[$i][$l][$j]['height'] = $month ? round($data['value'] * ($month / 100)) : 0; $this->_node[$i][$l][$j]['height'] = $month ? ceil($data['value'] * ($month / 100)) : 0;
} }
$this->_node[$i][$l][$j]['width'] = $width; $this->_node[$i][$l][$j]['width'] = $width;