Icecast Streaming Media Server Forum Index Icecast Streaming Media Server
Icecast is a Xiph Foundation Project
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Subtract Servers from Connection Count

 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server
View previous topic :: View next topic  
Author Message
Anonymous
Guest





PostPosted: Sun Oct 29, 2006 1:01 am    Post subject: Subtract Servers from Connection Count Reply with quote

Right now I have an XML file that only displays the number of active connections to the IceCast server and nothing else.

Code:

<xsl:stylesheet xmlns:xsl = "http://www.w3.org/1999/XSL/Transform" version = "1.0" >
<xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:template match = "/icestats" >
<html>
<head>
</head>
<body>
<font color="#999900" size="3"><strong>

<xsl:value-of select="clients" />

</strong></font>
</body>
</html>
</xsl:template>
</xsl:stylesheet>


Is there a way to add some bit of code to subtract a certain number from the connection count and display that total instead? I want to subtract the number of servers connected so my count only shows real listener connections.
Back to top
Anonymous
Guest





PostPosted: Sun Oct 29, 2006 1:10 am    Post subject: Reply with quote

Oh man, never mind...

Code:

<xsl:value-of select="clients - 15" />


Too simple. I thought I had tried that already but I guess I did it wrong the first time.

Thanks.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
subRebel style by ktauber