Code:
awk '
NR==1 {getline L1 < F1
getline L2 < F2
print "", L1, L2
}
{getline L1 < F1
split (L1, T)
SUM1 += T[1]
PRC1 += T[2]
getline L2 < F2
split (L2, T)
SUM2 += T[1]
PRC2 += T[2]
print $0, L1, L2
L1=L2="0,0"
}
END {print "TOTAL", SUM1, PRC1 "%", SUM2, PRC2 "%"}
' FS="," OFS="," F1="file1" F2="file2" file3
,ServiceEventHandler,,Wallet,
TIME,Processed,Percentage,Processed,Percentage
< 1m,5285337,100%,5285337,100%
> 1m - 2m,0,0,0,0
> 2m - 3m,0,0,0,0
> 3m - 5m,0,0,0,0
> 5m - 10m,0,0,0,0
> 10m - 15m,0,0,0,0
> 15m - 20m,0,0,0,0
> 20m - 30m,0,0,0,0
> 30m,0,0,0,0
TOTAL,5285337,100%,5285337,100%