Impove workload failure/success flipping and update demos

This commit is contained in:
James Greenaway
2019-01-29 10:19:30 +00:00
parent 9d19acbd23
commit 401c85df0a
2 changed files with 14 additions and 7 deletions

View File

@@ -14,9 +14,9 @@ export class WorkloadService {
}
private completeWorkload(work: Work) {
work.status = this.counter % 2
? 'SUCCESS'
: 'FAILURE';
work.status = work.id % 2
? 'FAILURE'
: 'SUCCESS';
}