GetMaxComputerCount Method



 
The GetMaxComputerCount method returns the maximum number of computers in a specified period of time.


Syntax

    [long=] SiteCafe.Server.Sessions.GetMaxComputerCount(sTime, eTime)
    
Parameters
    sTime Long value that specifies the start time.
    eTime Long value that specifies the end time.
Return Value
    Returns a Long value that contains the maximum number of computers.
Remarks
    The start and/or end time will be ignored if they are 0. Otherwise they are specified by the return value of the Date.getVarDate method divided by 1000.
Examples
    The following example displays the maximum number of computers between 02/20/2005, 18:20 and 02/22/2005, 18:20.

    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    date1 = new Date(2005, 2, 20, 18, 20, 0);
    date2 = new Date(2005, 2, 22, 18, 20, 0);
    vdate1 = date1.getVarDate() / 1000;
    vdate2 = date2.getVarDate() / 1000;
    alert(SiteCafe.Server.Sessions.GetMaxComputerCount(vdate1, vdate2));
    </SCRIPT>
    

Applies to
    SiteKiosk v6.2 (and later versions).

Back to top