Changeset 52 for trunk/www/task.php


Ignore:
Timestamp:
Jun 20, 2009, 6:22:13 PM (15 years ago)
Author:
george
Message:
  • Opraveno: Spuštěcí skript serverů start.sh spustí procesy emulátoru pouze pokud ještě nejsou spouštěné.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/task.php

    r41 r52  
    2424    chdir($Config['BaseDir']);
    2525    $DbResult = $this->Database->query('SELECT * FROM Task WHERE State = 0 ORDER BY Id,TimeCreate ASC');
    26     $this->Database->query('UPDATE Task SET State=2 WHERE State=1'); // Change not finished running tasks to finished
    27     $this->Database->query('UPDATE Task SET TimeEnd=NOW() WHERE State=2 AND TimeEnd = NULL'); // Set end time to finished tasks
    2826    while($Task = $DbResult->fetch_assoc())
    2927    {
     
    4543  function ProcessAllCycle()
    4644  {
     45    $this->Database->query('UPDATE Task SET State=2 WHERE State=1'); // Change not finished running tasks to finished
     46    $this->Database->query('UPDATE Task SET TimeEnd=NOW() WHERE State=2 AND TimeEnd = NULL'); // Set end time to finished tasks
    4747    while(1)
    4848    {
Note: See TracChangeset for help on using the changeset viewer.