tally: Adapt tally_mean to Samba coding conventions