@@ -274,25 +274,30 @@ def print_general(ml, key):
274
274
print (f'{ key } : people: { len (ml ["individual" ])} { rcnt } ' )
275
275
rsum = sum (rcnt .values ())
276
276
for k in rcnt :
277
- rcnt [k ] = round (rcnt [k ] / rsum , 2 )
277
+ rcnt [k ] = round (rcnt [k ] / rsum , 3 )
278
278
print (f'{ key } : people pct: { rcnt } ' )
279
279
reviews = ml ["git" ]["reviews" ]
280
280
print (f'{ key } : review pct: { reviews ["any" ]["pct" ]} % x-corp pct: { reviews ["x-company" ]["pct" ]} %' )
281
281
print ()
282
282
283
283
284
284
def print_diff (mlA , mlB ):
285
+ a = mlA ["git" ]["next-size" ] / ml_stat_days (mlA )
286
+ b = mlB ["git" ]["next-size" ] / ml_stat_days (mlB )
287
+ tree_delta = a / b
288
+ print (f"Diff: { round ((1 / tree_delta - 1 ) * 100 , 3 ):+5.1f} % linux-next size" )
289
+
285
290
a = mlA ["count" ] / ml_stat_days (mlA )
286
291
b = mlB ["count" ] / ml_stat_days (mlB )
287
- print (f'Diff: { round ((b / a - 1 ) * 100 , 3 ):+.1f} % msg/day' )
292
+ print (f'Diff: { round ((b / a - 1 ) * 100 , 3 ):+5 .1f} % ( { round (( b / a * tree_delta - 1 ) * 100 , 3 ):+5.1f } %) msg/day' )
288
293
289
294
a = mlA ["git" ]["direct_commits" ] / ml_stat_days (mlA )
290
295
b = mlB ["git" ]["direct_commits" ] / ml_stat_days (mlB )
291
- print (f'Diff: { round ((b / a - 1 ) * 100 , 3 ):+.1f} % commits/day' )
296
+ print (f'Diff: { round ((b / a - 1 ) * 100 , 3 ):+5 .1f} % ( { round (( b / a * tree_delta - 1 ) * 100 , 3 ):+5.1f } %) commits/day' )
292
297
293
298
a = len (mlA ["individual" ]) / ml_stat_days (mlA )
294
299
b = len (mlB ["individual" ]) / ml_stat_days (mlB )
295
- print (f'Diff: { round ((b / a - 1 ) * 100 , 3 ):+.1f} % people/day' )
300
+ print (f'Diff: { round ((b / a - 1 ) * 100 , 3 ):+5 .1f} % ( { round (( b / a * tree_delta - 1 ) * 100 , 3 ):+5.1f } %) people/day' )
296
301
297
302
reviewsA = mlA ["git" ]["reviews" ]
298
303
reviewsB = mlB ["git" ]["reviews" ]
0 commit comments