GetMaxComputerCount Method

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


    [long=] SiteCafe.Server.Sessions.GetMaxComputerCount(sTime, eTime)
    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.
    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.
    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">
    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));

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

Back to top