From 4d4712f34166a9138c6c2f627187bfcccbddd169 Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Sun, 1 Jul 2007 23:51:41 +0000 Subject: bunch of minor fixes and a db change --- play/index.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'play') 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); -- cgit