On Mon, 10 Dec 2007 08:44:56 +0100 Mattias Nissler <mattias.nissler@xxxxxx> wrote: > You're totally right. But IMHO it's nicer to be a little defensive here. > You never know what happens to your code in the future. Just imagine > somebody coming up with: Hey, let's use a timer-based approach for > sampling. Ok, that's easy to do, just call sample() every time the timer > expires. And whoops, there's the division by zero when no packets are > transmitted... Ok, you are right, I'll fix this. -- Ciao Stefano - To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html