Fix divide by zero on small arrays

Small arrays cause divide by zero on systems with highly granular
timebases.  This happens because the data is sent very quickly and the
system's timebase has not ticked between calls to System.nanoTime() and
as a consequence we divide by zero.