Changeset 264 for trunk/system/generators/generate.php
- Timestamp:
- Nov 25, 2009, 9:20:27 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/generators/generate.php
r213 r264 5 5 6 6 $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)'); 8 8 while($Service = $DbResult->fetch_assoc()) 9 9 { … … 24 24 //echo("Done\n"); 25 25 $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))); 27 28 } 28 29 }
Note:
See TracChangeset
for help on using the changeset viewer.