Discussion:
[Libstoragemgmt-devel] [PATCH 1/2] python sim: Allow async. jobs too
Tony Asleson
2014-04-23 22:54:18 UTC
Permalink
Signed-off-by: Tony Asleson <***@redhat.com>
---
lsm/lsm/simarray.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lsm/lsm/simarray.py b/lsm/lsm/simarray.py
index 29cab42..a65e5bf 100644
--- a/lsm/lsm/simarray.py
+++ b/lsm/lsm/simarray.py
@@ -823,8 +823,7 @@ class SimData(object):
SimData.SIM_DATA_BLK_SIZE

def job_create(self, returned_item):
- if False:
- #if random.randint(0,5) == 1:
+ if random.randint(0, 3) > 0:
self.job_num += 1
job_id = "JOB_%s" % self.job_num
self.job_dict[job_id] = SimJob(returned_item)
--
1.8.2.1
Loading...