Commit 6697a3dd authored by Volker Lendecke's avatar Volker Lendecke Committed by Rusty Russell

tally: Adapt tally_mean to Samba coding conventions

(Imported from SAMBA commit 06a41594554a1a6881dcbf9d051a822f8f955b56)
parent 63a3c0f3
......@@ -322,8 +322,9 @@ static int64_t divls64(int64_t u1, uint64_t u0, int64_t v)
ssize_t tally_mean(const struct tally *tally)
{
size_t count = tally_num(tally);
if (!count)
if (!count) {
return 0;
}
if (sizeof(tally->total[0]) == sizeof(uint32_t)) {
/* Use standard 64-bit arithmetic. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment