Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 289793 Details for
Bug 387129
[PATCH] net-misc/iperf-2.0.5: --bandwidth broken for low values
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
fix compat/delay.cpp:delay_loop() for delays of 1s and greater
iperf-fix-bandwidth-limit.patch (text/plain), 757 bytes, created by
Israel G. Lugo
on 2011-10-14 14:14:45 UTC
(
hide
)
Description:
fix compat/delay.cpp:delay_loop() for delays of 1s and greater
Filename:
MIME Type:
Creator:
Israel G. Lugo
Created:
2011-10-14 14:14:45 UTC
Size:
757 bytes
patch
obsolete
> >2011-10-14 Israel G. Lugo <israel.lugo@lugosys.com> > >* Fix delay_loop() for delays of 1s and greater. Was causing breakage when a >low bandwidth limit was specified. > > >Index: compat/delay.cpp >=================================================================== >--- compat/delay.cpp (revision 81) >+++ compat/delay.cpp (working copy) >@@ -63,8 +63,9 @@ void delay_loop(unsigned long usec) > { > struct timespec requested, remaining; > >- requested.tv_sec = 0; >- requested.tv_nsec = usec * 1000L; >+ /* convert to seconds; nanosleep requires 0 <= tv_nsec <= 999999999 */ >+ requested.tv_sec = usec / 1000000UL; >+ requested.tv_nsec = (usec % 1000000UL) * 1000UL; > > while (nanosleep(&requested, &remaining) == -1) > if (errno == EINTR)
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 Raw
Actions:
View
Attachments on
bug 387129
: 289793