-
Notifications
You must be signed in to change notification settings - Fork 559
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BBC: blead breaks YOHEIMUTA/Linux-GetPidstat-0.09.tar.gz #16905
Comments
From @eserteThis is a bug report for perl from slaven@rezic.de, The test suite of Linux-GetPidstat-0.09 fails since perl 5.29.2: # Failed test at t/08_collector_parser.t line 47. This looks like floating point inaccuracy, but inequality Flags: Site configuration information for perl 5.29.9: Configured by eserte at Thu Mar 21 21:10:55 UTC 2019. Summary of my perl5 (revision 5 version 29 subversion 9) configuration: @INC for perl 5.29.9: Environment for perl 5.29.9: |
From @jkeenanOn Sun, 24 Mar 2019 09:55:16 GMT, slaven@rezic.de wrote:
This module has a ton of prerequisites, but the problem ultimately has nothing to do with either Linux or PID statistics. Bisection -- on FreeBSD! -- with attached program 133953-pid.pl, pointed to this commit: ##### PATCH: [perl #41202] text->float gives wrong answer This changes to use Perl_strtod() when available, and that S_mulexp10() is removed from embed.fnc to avoid repeating I was ultimately able to further reduce it to attached program y133953.pl and reconfirm the breaking commit. However, given that the commit in question fixed a bug in perl, we should reject this ticket and advise the downstream CPAN maintainer to revise his test data. Thank you very much. -- |
From @jkeenan |
From @jkeenan |
The RT System itself - Status changed from 'new' to 'open' |
From @tonycozOn Sun, 24 Mar 2019 08:30:57 -0700, jkeenan wrote:
Leaving the rounding to the final step would help too. If I add some debug output to _mean: mean 34.62 34.62 34.65 34.65 => 34.635 => 34.63 The second last number is the raw mean, the last number the rounded value. Rounding at this point simply accumulates errors. If you remove the rounding in _mean and do it only as the final step the result is the expected value. Tony |
From @jkeenanThe author of Linux::GetPidstat released a new version to CPAN in late March which addresses the issues raised in this ticket. Marking this ticket Resolved. |
@jkeenan - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#133953 (status was 'resolved')
Searchable as RT133953$
The text was updated successfully, but these errors were encountered: