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

Commit 4209a997 authored by Mike Sheldon's avatar Mike Sheldon

Merge commit 'refs/merge-requests/3' of gitorious.org:foocorp/gnu-fm into install-improvements

parents 9429ed27 4608378a
......@@ -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;
......
......@@ -47,13 +47,13 @@ try {
if(isset($user->name)) {
$smarty->assign('stat_barwidth', 320);
try {
$aUserPlayStat = Statistic::GeneratePlayStats('Scrobbles', 'artist', 40, $user->uniqueid, 300);
try {
$aUserPlayStat = Statistic::GeneratePlayStats('Scrobbles', 'artist', 40, $user->uniqueid, 300);
$smarty->assign('user_playstats',$aUserPlayStat);
} catch (exception $e) {}
try {
$aUserDayStat = Statistic::generatePlayByDays('Scrobbles', 40, $user->uniqueid, 300);
try {
$aUserDayStat = Statistic::generatePlayByDays('Scrobbles', 40, $user->uniqueid, 300);
$smarty->assign('user_daystats',$aUserDayStat);
} catch (exception $e) {}
......
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