|
|
@@ -46,7 +46,8 @@ conf = {
|
|
46
|
46
|
'commit_end': 'HEAD',
|
|
47
|
47
|
'linear_linestats': 1,
|
|
48
|
48
|
'project_name': '',
|
|
49
|
|
- 'merge_authors': {}
|
|
|
49
|
+ 'merge_authors': {},
|
|
|
50
|
+ 'processes': 8,
|
|
50
|
51
|
}
|
|
51
|
52
|
|
|
52
|
53
|
def getpipeoutput(cmds, quiet = False):
|
|
|
@@ -448,7 +449,7 @@ class GitDataCollector(DataCollector):
|
|
448
|
449
|
revs_to_read.append((time,rev))
|
|
449
|
450
|
|
|
450
|
451
|
#Read revisions from repo
|
|
451
|
|
- time_rev_count = Pool(processes=24).map(getnumoffilesfromrev, revs_to_read)
|
|
|
452
|
+ time_rev_count = Pool(processes=conf['processes']).map(getnumoffilesfromrev, revs_to_read)
|
|
452
|
453
|
|
|
453
|
454
|
#Update cache with new revisions and append then to general list
|
|
454
|
455
|
for (time, rev, count) in time_rev_count:
|