Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 305171 Details for
Bug 408017
net-analyzer/chaosreader-0.94-r1.ebuild: some fixes
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
chaosreader-0.94-divisionbyzero.patch
chaosreader-0.94-divisionbyzero.patch (text/plain), 639 bytes, created by
rainbow
on 2012-03-13 11:38:19 UTC
(
hide
)
Description:
chaosreader-0.94-divisionbyzero.patch
Filename:
MIME Type:
Creator:
rainbow
Created:
2012-03-13 11:38:19 UTC
Size:
639 bytes
patch
obsolete
>--- chaosreader 2011-11-10 19:17:50.000000000 +0100 >+++ chaosreader-0.94 2012-03-09 18:15:21.096105305 +0100 >@@ -4028,7 +4024,14 @@ > ### This causes the replay program to pause > print REPLAY "ms($timediff1);\n"; > } >- $speed = sprintf("%.2f",$bytes / (1024 * $duration)); >+ # avoid division by zero >+ # from http://sourceforge.net/tracker/?func=detail&aid=2210488&group_id=107384&atid=647489 >+ 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;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 408017
:
305165
|
305167
|
305169
| 305171 |
305173
|
305257