We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit e4ea42ff authored by Mike Sheldon's avatar Mike Sheldon

Round statistic bar sizes to the nearest pixel

parent e42fc265
......@@ -60,7 +60,7 @@ class Statistic {
foreach($res as &$i){
$i['pageurl'] = Server::getArtistURL($i['artist']);
$i['size'] = $i['count'] / $max * $maxwidth;
$i['size'] = round($i['count'] / $max * $maxwidth);
}
return $res;
......@@ -100,7 +100,7 @@ class Statistic {
}
foreach($res as &$i){
$i['size'] = $i['count'] / $max * $maxwidth;
$i['size'] = round($i['count'] / $max * $maxwidth);
}
return $res;
......
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