librefm-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Librefm-commits] [1896] unbreak the bars


From: Clint Adams
Subject: [Librefm-commits] [1896] unbreak the bars
Date: Sat, 30 May 2009 00:27:10 +0000

Revision: 1896
          http://svn.sv.gnu.org/viewvc/?view=rev&root=librefm&revision=1896
Author:   clint
Date:     2009-05-30 00:27:09 +0000 (Sat, 30 May 2009)
Log Message:
-----------
unbreak the bars

Modified Paths:
--------------
    trunk/nixtape/data/User.php

Modified: trunk/nixtape/data/User.php
===================================================================
--- trunk/nixtape/data/User.php 2009-05-30 00:24:29 UTC (rev 1895)
+++ trunk/nixtape/data/User.php 2009-05-30 00:27:09 UTC (rev 1896)
@@ -250,15 +250,15 @@
                        $row = sanitize($i);
                        $row['artisturl'] = 
Server::getArtistURL($row['artist']);
                        $row['trackurl'] = 
Server::getTrackURL($row['artist'],$row['album'],$row['track']);
-                       if ((int)$row['c'] > $maxcount) {
-                               $maxcount = (int)$row['c'];
+                       if ((int)$row['freq'] > $maxcount) {
+                               $maxcount = (int)$row['freq'];
                        }
                        $result[] = $row;
                }
 
                if ($maxcount > 0) {
                        foreach($result as &$row) {
-                               $row['width']=(int)(100 * 
($row['c']/$maxcount));
+                               $row['width']=(int)(100 * 
($row['freq']/$maxcount));
                        }
                }
 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]