summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-03-24 08:24:29 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-03-24 08:24:29 +0000
commitfeffae660e250ba631e74dea0b62088749d10b6b (patch)
tree4929350f153ec363033c9b216ad86d2fb227e147 /lib
parent80b0748b4a43087aed6802b6b631f064f975f097 (diff)
downloadampache-feffae660e250ba631e74dea0b62088749d10b6b.tar.gz
ampache-feffae660e250ba631e74dea0b62088749d10b6b.tar.bz2
ampache-feffae660e250ba631e74dea0b62088749d10b6b.zip
added a hack for some additional sorting and fixed it so that the user table has alternating colors
Diffstat (limited to 'lib')
-rw-r--r--lib/stream.lib.php8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/stream.lib.php b/lib/stream.lib.php
index 37674d7b..9b99d752 100644
--- a/lib/stream.lib.php
+++ b/lib/stream.lib.php
@@ -180,9 +180,7 @@ function start_downsample($song,$now_playing_id=0,$song_name=0) {
if ($min_bitrate > 1 AND ($max_bitrate/$active_streams) < $min_bitrate) {
/* Log the failure */
- if (conf('debug')) {
- log_event($user->username,' downsample ',"Error: Max bandwidith already allocated. $active_streams Active Streams");
- }
+ debug_event('downsample',"Error: Max bandwidith already allocated. $active_streams Active Streams",'2');
/* Toast the now playing entry, then tell em to try again later */
delete_now_playing($now_playing_id);
@@ -197,9 +195,7 @@ function start_downsample($song,$now_playing_id=0,$song_name=0) {
// Never go over the users sample rate
if ($sample_rate > $user_sample_rate) { $sample_rate = $user_sample_rate; }
- if (conf('debug')) {
- log_event($GLOBALS['user']->username, ' downsample ',"Downsampled: $active_streams current active streams, downsampling to $sample_rate");
- }
+ debug_event('downsample',"Downsampled: $active_streams current active streams, downsampling to $sample_rate",'2');
} // end if we've got bitrates