Changeset 822


Ignore:
Timestamp:
Apr 2, 2016, 7:59:48 PM (9 years ago)
Author:
chronos
Message:
  • Modified: Lower network notify minimum time to 2 minutes.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/Network/Network.php

    r820 r822  
    9999class ModuleNetwork extends AppModule
    100100{
     101  var $MinNotifyTime;
     102 
    101103  function __construct($System)
    102104  {
     
    108110    $this->Description = 'Networking related tools';
    109111    $this->Dependencies = array('Notify');
     112   
     113    // TODO: Make notify time configurable
     114    $this->MinNotifytime = 2 * 60;
    110115  }
    111116
     
    752757    $Output = '';
    753758    $Output = $this->OnlineList('Nově online', 1, 0, 0);
    754     $Output .= $this->OnlineList('Nově offline', 0, 1, 5 * 60);
     759    $Output .= $this->OnlineList('Nově offline', 0, 1, $this->MinNotifyTime);
    755760    if($Output != '') $Output .= $this->OnlineList('Stále offline', 0, 0, 0);
    756761    return($Output);
     
    799804    $Output = '';
    800805    $Output = $this->PortCheckList('Nově online', 1, 0, 0);
    801     $Output .= $this->PortCheckList('Nově offline', 0, 1, 5 * 60);
     806    $Output .= $this->PortCheckList('Nově offline', 0, 1, $this->MinNotifyTime);
    802807    if($Output != '') $Output .= $this->PortCheckList('Stále offline', 0, 0, 0);
    803808    return($Output);
Note: See TracChangeset for help on using the changeset viewer.