home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
WinFiles.com 1998 June
/
WF0698_3.ISO
/
servers-websrv
/
websuite.exe
/
SRVSTATS.AP_
/
SRVSTATS.AP
Wrap
Text File
|
1998-04-01
|
4KB
|
155 lines
<[
// Personal Web Server - Server Statistics
// (c) 1997-98 SmartDesk, Inc., All Rights Reserved
websrvr = 0 + param( 1 )
sessionId = 0 + param( 2 )
session = new( "session", websrvr, sessionId )
stats = webServerStats( websrvr )
]>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<!5thGEN Active Pages, by www.smartdesk.com>
<HTML>
<TITLE>Personal Web Server Statistics</TITLE>
<BODY BGCOLOR="#000000" LINK="#FFFFFF" VLINK="#FFFFFF" TEXT="#FFFFFF">
<TABLE BORDER=0 WIDTH=600>
<TR>
<TD VALIGN="top" WIDTH=120>
<CENTER>
<A HREF="/index.htm"><IMG SRC="/image/earth.gif" WIDTH=80 HEIGHT=80 BORDER=0></A><BR>
<FONT COLOR="#FFFFFF" SIZE=1><FONT COLOR="#00FFFF">©Copyright 1997-98</FONT><BR>by SmartDesk, Inc.<BR>All Rights Reserved<BR></FONT>
</CENTER>
</TD>
<TD WIDTH=10>
</TD>
<TD WIDTH=465>
<CENTER>
<P><FONT SIZE=5 COLOR="00FFFF"><B><[ ! session.data( "SERVER_SOFTWARE" ) ]></B></FONT><BR>
<FONT SIZE=2>
<A HREF="server.htm">Details</A> |
<A HREF="srvconfg.htm">Configuration</A> |
<A HREF="loglist.htm">Server Log</A> |
<A HREF="/index.htm">Home</A></P>
</FONT>
</P>
</CENTER>
<P><BR></P>
<P><FONT SIZE=4 COLOR="00FFFF"><B>Statistics</B></FONT><BR></P>
<P><CENTER><FONT SIZE=2><[ ! session.data( "SERVER_NAME" ) + ", " + cdow( jdate( ) ) + " " + date( "MMMM DDDD, YYYY" ) + ", " + timetostr( time( ), 0 ) + "m" ]></FONT><CENTER></P>
<TABLE BORDER=2 WIDTH=460>
<TR VALIGN="top" ALIGN="left">
<TD>Connection Requests</TD>
<TD><[ ! strcommas( strextract( stats, " ", 12 ) ) ]></TD>
</TR>
<TR>
<TD>Session Count</TD>
<TD><[ ! strcommas( strextract( stats, " ", 13 ) ) ]></TD>
</TR>
<TR>
<TD>Bytes Sent</TD>
<TD><[ ! strcommas( strextract( stats, " ", 8 ) ) ]></TD>
</TR>
<TR>
<TD>Bytes Received</TD>
<TD><[ ! strcommas( strextract( stats, " ", 9 ) ) ]></TD>
</TR>
<TR>
<TD>Read Requests</TD>
<TD><[ ! strcommas( strextract( stats, " ", 3 ) ) ]></TD>
</TR>
<TR>
<TD>Write Requests</TD>
<TD><[ ! strcommas( strextract( stats, " ", 4 ) ) ]></TD>
</TR>
<TR>
<TD>Active Page Requests</TD>
<TD><[ ! strcommas( strextract( stats, " ", 5 ) ) ]></TD>
</TR>
<TR>
<TD>Active Page Bytes Generated</TD>
<TD><[ ! strcommas( strextract( stats, " ", 6 ) ) ]></TD>
</TR>
<TR>
<TD>Average Bytes Per Read</TD>
<TD><[
x = 0 + strextract( stats, " ", 3 )
if ( x < 1 )
! 0
else
y = 0 + strextract( stats, " ", 9 )
! strcommas( "" + int( y / x ) )
end
]></TD>
</TR>
<TR>
<TD>Average Bytes Per Write</TD>
<TD><[
x = 0 + strextract( stats, " ", 4 )
if ( x < 1 )
! 0
else
y = 0 + strextract( stats, " ", 8 )
! strcommas( "" + int( y / x ) )
end
]></TD>
</TR>
<TR>
<TD>Average Bytes Per Active Page</TD>
<TD><[
x = 0 + strextract( stats, " ", 5 )
if ( x < 1 )
! 0
else
y = 0 + strextract( stats, " ", 6 )
! strcommas( "" + int( y / x ) )
end
]></TD>
</TR>
<TR>
<TD>Retries</TD>
<TD><[ ! strcommas( strextract( stats, " ", 11 ) ) ]></TD>
</TR>
<TR>
<TD>Errors</TD>
<TD><[ ! strcommas( strextract( stats, " ", 10 ) ) ]></TD>
</TR>
<TR>
<TD>Error Percentage</TD>
<TD><[
x = ( 0 + strextract( stats, " ", 3 ) ) + strextract( stats, " ", 4 )
if ( x < 1 )
! "0.0%"
else
y = 0.0 + strextract( stats, " ", 10 )
z = "" + ( ( y / x ) * 100 )
if ( at( "e", z ) > 1 )
! "< .01%"
else
! left( "" + z + " ", 6 ) + "%"
end
end
]></TD>
</TR>
<TR>
</TABLE>
<CENTER><P>
<FONT SIZE=2><A HREF="http://www.smartdesk.com/websuite.html">Tell me more about the SmartDesk Personal Web Server</A><BR></FONT>
</P></CENTER>
</TD>
</TR>
</TABLE>
<br><br><br><br>
<[! webFooter( )]>