Skip to content

Commit

Permalink
Flag the AD discoveries as complete once we generate and run the asso…
Browse files Browse the repository at this point in the history
…ciated subnet discoveries.
  • Loading branch information
mark-unwin committed Feb 4, 2019
1 parent 10028b0 commit 46b4bf8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions code_igniter/application/models/m_discoveries.php
Original file line number Diff line number Diff line change
Expand Up @@ -620,6 +620,11 @@ public function run($id = '')
discovery_log($log);
return false;
}

$sql = "UPDATE `discoveries` SET `status` = 'complete', `device_count` = 0, `complete` = 'y', `last_run` = NOW(), last_log = NOW(), `duration` = '00:00:00' WHERE id = ?";
$data = array($limit, intval($id));
$this->run_sql($sql, $data);

}
}
}
Expand Down

0 comments on commit 46b4bf8

Please sign in to comment.