|
@@ -83,8 +83,11 @@ def print_result(symboltype, symbolformat, argc):
|
|
for d, n in delta:
|
|
for d, n in delta:
|
|
if d: print("%-40s %7s %7s %+7d" % (n, old.get(n,"-"), new.get(n,"-"), d))
|
|
if d: print("%-40s %7s %7s %+7d" % (n, old.get(n,"-"), new.get(n,"-"), d))
|
|
|
|
|
|
- print("Total: Before=%d, After=%d, chg %+.2f%%" % \
|
|
|
|
- (otot, ntot, (ntot - otot)*100.0/otot))
|
|
|
|
|
|
+ if otot:
|
|
|
|
+ percent = (ntot - otot) * 100.0 / otot
|
|
|
|
+ else:
|
|
|
|
+ percent = 0
|
|
|
|
+ print("Total: Before=%d, After=%d, chg %+.2f%%" % (otot, ntot, percent))
|
|
|
|
|
|
if sys.argv[1] == "-c":
|
|
if sys.argv[1] == "-c":
|
|
print_result("Function", "tT", 3)
|
|
print_result("Function", "tT", 3)
|