summaryrefslogtreecommitdiffstats
path: root/play/index.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-07-01 23:51:41 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-07-01 23:51:41 +0000
commit4d4712f34166a9138c6c2f627187bfcccbddd169 (patch)
tree0207890fc425095acad08db9d1ec64620a284ced /play/index.php
parentc78314791e6b84945f693720c33fcdf9a4ba324f (diff)
downloadampache-4d4712f34166a9138c6c2f627187bfcccbddd169.tar.gz
ampache-4d4712f34166a9138c6c2f627187bfcccbddd169.tar.bz2
ampache-4d4712f34166a9138c6c2f627187bfcccbddd169.zip
bunch of minor fixes and a db change
Diffstat (limited to 'play/index.php')
-rw-r--r--play/index.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/play/index.php b/play/index.php
index 3bef1226..846c86a4 100644
--- a/play/index.php
+++ b/play/index.php
@@ -221,7 +221,7 @@ if (!is_resource($fp)) {
} // else not downsampling
// We need to check to see if they are rate limited
-$chunk_size = '8192';
+$chunk_size = '4096';
if ($GLOBALS['user']->prefs['rate_limit'] > 0) {
$chunk_size = $GLOBALS['user']->prefs['rate_limit'];
@@ -250,13 +250,10 @@ else {
/* Let's force them to actually play a portion of the song before
* we count it in the statistics
- * @author SH
*/
$bytesStreamed = $start;
$minBytesStreamed = $song->size / 2;
-
-
// Actually do the streaming
while (!feof($fp) && (connection_status() == 0)) {
$buf = fread($fp, $chunk_size);