diff options
author | SaiEswarEpuri <saieswar36@gmail.com> | 2015-07-06 11:28:02 +0530 |
---|---|---|
committer | SaiEswarEpuri <saieswar36@gmail.com> | 2015-07-06 11:28:02 +0530 |
commit | 7bb3b43ae010f926a3434e844c9821b986a721db (patch) | |
tree | 7a1712754b5008f1ddd1cd062724e038bc8f5757 /gnowsys-ndf/gnowsys_ndf | |
parent | db1b8ccb50815dd2dd3ecc87337e5c860946666f (diff) | |
download | gnowsys-7bb3b43ae010f926a3434e844c9821b986a721db.tar.gz |
corrected a minor bug while implementing multiprocessing
Diffstat (limited to 'gnowsys-ndf/gnowsys_ndf')
-rw-r--r-- | gnowsys-ndf/gnowsys_ndf/ndf/views/ajax_views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gnowsys-ndf/gnowsys_ndf/ndf/views/ajax_views.py b/gnowsys-ndf/gnowsys_ndf/ndf/views/ajax_views.py index 0c3b742..a977973 100644 --- a/gnowsys-ndf/gnowsys_ndf/ndf/views/ajax_views.py +++ b/gnowsys-ndf/gnowsys_ndf/ndf/views/ajax_views.py @@ -779,7 +779,7 @@ def get_collection(request, group_id, node_id): n2=t/x#divides the list into those many parts #Process object is created.The list after being partioned is also given as an argument. for i in range(x): - processes.append(multiprocessing.Process(target=multi_,args=(node.collection_set[i*n2:(i+1)*n2]))) + processes.append(multiprocessing.Process(target=multi_,args=(node.collection_set[i*n2:(i+1)*n2],))) for i in range(x): processes[i].start()#each Process started for i in range(x): |