Ignore:
Timestamp:
Jan 1, 2014, 4:37:22 PM (11 years ago)
Author:
chronos
Message:
  • Opraveno: Nastavovat stav online u zařízení.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/NetworkConfigRouterOS/Generators/NetwatchImport.php

    r617 r626  
    4040  {
    4141    if($Device['SumOnline'] > 0)
    42       $System->Database->update('NetworkDevice', 'Id='.$Device['Device'], array('LastOnline' => TimeToMysqlDateTime($StartTime)));
     42      $System->Database->update('NetworkDevice', 'Id='.$Device['Device'], array('LastOnline' => TimeToMysqlDateTime($StartTime), 'Online' => 1));
    4343  }
    4444  $DbResult = $System->Database->update('NetworkDevice', '`LastOnline` < "'.TimeToMysqlDateTime($StartTime).'"', array('Online' => 0));
Note: See TracChangeset for help on using the changeset viewer.