Skip to content

Commit

Permalink
Lower initial script delay
Browse files Browse the repository at this point in the history
Signed-off-by: Petr Plavjanik <petr.plavjanik@broadcom.com>
  • Loading branch information
plavjanik committed Dec 8, 2020
1 parent 79f2146 commit 8fa4bbf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ interface TestDefinition {
jobOutputSize: string;
duration: string;
commandDelay: string;
initialScriptDelay: string;
scriptDelay: string;
concurrentUsers: number;
zosmfProfiles: string[];
Expand Down Expand Up @@ -136,8 +137,9 @@ class Zztop extends Command {
): Promise<ActivityStats> {
const scriptDelay = parse(testDefinition.scriptDelay) || 1000;
const commandDelay = parse(testDefinition.commandDelay) || 1000;
const initialScriptDelay = parse(testDefinition.initialScriptDelay) || commandDelay;
const duration = parse(testDefinition.duration) || 1000;
await sleep(scriptDelay * userNumber);
await sleep(initialScriptDelay * userNumber);

const profileName =
testDefinition.zosmfProfiles[
Expand Down Expand Up @@ -499,7 +501,7 @@ class Zztop extends Command {
`, average successful duration: ${
successfulDuration[testName] / successfulCount[testName]
}` +
`, average faield duration: ${
`, average failed duration: ${
failedDuration[testName] / failedCount[testName]
}`
);
Expand Down

0 comments on commit 8fa4bbf

Please sign in to comment.