freebsd-ports/security/chaosreader/files/patch-chaosreader
Dmitry Marakasov 5424e01988 - Update to 0.96
- Project has moved to github, update MASTER_SITES
- Drop sshkeydata binary (it's deprecated)
- Add LICENSE
- Add dependencies: dns/p5-Net-DNS
- Set architecture neutral
- Take maintainership

PR:		215644
Submitted by:	dbaio@bsd.com.br
2016-12-29 13:59:20 +00:00

15 lines
487 B
Text

--- chaosreader.orig 2014-06-15 19:30:11 UTC
+++ chaosreader
@@ -4275,7 +4275,11 @@ END
print REPLAY "ms($timediff1);\n";
}
$duration = 0.01 if $duration == 0; # avoid divide by 0,
- $speed = sprintf("%.2f",$bytes / (1024 * $duration));
+ if ( $duration > 0 ) {
+ $speed = sprintf("%.2f",$bytes / (1024 * $duration));
+ } else {
+ $speed = "unknown";
+ }
print REPLAY "print \"\n\n" .
"Summary: $duration2 seconds, $bytes bytes, $speed Kb/sec\\n\";";
close REPLAY;