Ignore:
Timestamp:
Nov 25, 2009, 9:20:27 PM (15 years ago)
Author:
george
Message:
  • Opraveno: Import stavu netwatch. * Opraveno: Chybné označení dokončení restartu konfigurace.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/system/generators/generate.php

    r213 r264  
    55
    66$Now = time();
    7 $DbResult = $Database->select('NetworkConfiguration', '*, UNIX_TIMESTAMP(LastTime)', '(Changed != 0) AND (Enabled = 1)');
     7$DbResult = $Database->select('NetworkConfiguration', '*, UNIX_TIMESTAMP(LastTime)', '(Changed = 1) AND (Enabled = 1)');
    88while($Service = $DbResult->fetch_assoc())
    99{
     
    2424    //echo("Done\n");
    2525    $ExecutionTime = time() - $ExecutionStart;
    26     $Database->update('NetworkConfiguration', 'Id='.$Service['Id'], array('Changed' => 0, 'LastTime' => 'NOW()', 'ExecutionTime' => $ExecutionTime, 'Log' => implode("\n", $Output)));
     26    $Database->update('NetworkConfiguration', 'Id='.$Service['Id'], array('Changed' => 0, 'LastTime' => 'NOW()', 'ExecutionTime' => $ExecutionTime));
     27    $Database->update('NetworkConfiguration', 'Id='.$Service['Id'], array('Log' => implode("\n", $Output)));
    2728  }
    2829}
Note: See TracChangeset for help on using the changeset viewer.