Author: Joao Eriberto Mota Filho <eriberto@eriberto.pro.br>
Description: Avoid an error because a division by zero.

diff -Naurp chaosreader.orig/chaosreader0.94 chaosreader/chaosreader0.94
--- chaosreader.orig/chaosreader0.94	2009-07-09 12:15:01.000000000 +0000
+++ chaosreader/chaosreader0.94	2009-07-09 13:43:00.000000000 +0000
@@ -4028,6 +4028,7 @@ END
 	   ### This causes the replay program to pause
 	   print REPLAY "ms($timediff1);\n";
 	}
+	$duration = 0.01 if $duration == 0;     # avoid divide by 0,
 	$speed = sprintf("%.2f",$bytes / (1024 * $duration));
 	print REPLAY "print \"\n\n" .
 	 "Summary: $duration2 seconds, $bytes bytes, $speed Kb/sec\\n\";";
