tally: Adapt bucket_range to Samba coding conventions