Ver código fonte

fix: let "Pool" for line count data collection honor "processes" configuration setting

Signed-off-by: Heikki Hokkanen <hoxu@users.sf.net>
Andreas Motl 12 anos atrás
pai
commit
a266ddc1cc
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1
    1
      gitstats

+ 1
- 1
gitstats Ver arquivo

@@ -507,7 +507,7 @@ class GitDataCollector(DataCollector):
507 507
 				blobs_to_read.append((ext,blob_id))
508 508
 
509 509
 		#Get info abount line count for new blob's that wasn't found in cache
510
-		ext_blob_linecount = Pool(processes=24).map(getnumoflinesinblob, blobs_to_read)
510
+		ext_blob_linecount = Pool(processes=conf['processes']).map(getnumoflinesinblob, blobs_to_read)
511 511
 
512 512
 		#Update cache and write down info about number of number of lines
513 513
 		for (ext, blob_id, linecount) in ext_blob_linecount: