summaryrefslogtreecommitdiffstats
path: root/lib/class/stream.class.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-08-06 17:02:56 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-08-06 17:02:56 +0000
commiteb2b8261794cadde0becbcfc50a0049f52dc05f2 (patch)
tree34300380dc5287cfabcf25c3991fa863a387dfb5 /lib/class/stream.class.php
parent8b733244acee4f2416d78569f7a403488397e69c (diff)
downloadampache-eb2b8261794cadde0becbcfc50a0049f52dc05f2.tar.gz
ampache-eb2b8261794cadde0becbcfc50a0049f52dc05f2.tar.bz2
ampache-eb2b8261794cadde0becbcfc50a0049f52dc05f2.zip
make the ip history only clear the old stuff sometimes, also fix rounding issues on the downsampling
Diffstat (limited to 'lib/class/stream.class.php')
-rw-r--r--lib/class/stream.class.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/class/stream.class.php b/lib/class/stream.class.php
index 1800990d..511f450b 100644
--- a/lib/class/stream.class.php
+++ b/lib/class/stream.class.php
@@ -587,7 +587,7 @@ class Stream {
/* Never Upsample a song */
if (($sample_rate*1000) > $song->bitrate) {
- $sample_rate = self::validate_bitrate($song->bitrate)/1000;
+ $sample_rate = self::validate_bitrate($song->bitrate/1000);
$sample_ratio = '1';
}
else {