mirror of https://github.com/MISP/MISP
fix: Added progress bar to JSON cache generation
parent
47c6feab4d
commit
37c9abfb7c
|
@ -90,6 +90,7 @@ class EventShell extends AppShell
|
|||
$result = $this->Event->fetchEvent($user, array('eventid' => $eventId['Event']['id'], 'includeAttachments' => Configure::read('MISP.cached_attachments')));
|
||||
$file->append($converter->event2JSON($result[0]));
|
||||
if ($k < count($eventIds) -1 ) $file->append(',');
|
||||
$this->Job->saveField('progress', ($k+1) / $eventCount *100);
|
||||
}
|
||||
$file->append(']}');
|
||||
$file->close();
|
||||
|
|
Loading…
Reference in New Issue