Use the same wait logic for analyze

git-svn-id: file:///home/svn/framework3/trunk@10138 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2010-08-25 15:05:37 +00:00
parent d7b2831557
commit c12947192c
1 changed files with 5 additions and 1 deletions

View File

@ -162,7 +162,11 @@ for (var tApp in apps) {
nprocs = process_list();
}
WScript.Sleep(500);
// If an application spawned, give it three seconds
// This helps with ProcMon memory usage as well
if (nprocs.length > procs.length) {
WScript.Sleep(3000);
}
var killer = "taskkill /F ";
for (var i=0; i < nprocs.length; i++) {