[OE-core] [PATCH] buildstats-summary: round the floating point percentage

Christopher Larson chris_larson at mentor.com
Fri Jul 1 02:43:07 UTC 2016


On Thu, Jun 30, 2016 at 5:18 PM, Christopher Larson <kergoth at gmail.com>
wrote:

> From: Christopher Larson <chris_larson at mentor.com>
>
> This was rounded in python 2, but python 3 changed the default behavior of
> /.
> We could switch to the same behavior as previous by switching to // rather
> than /, but there's value in keeping at least one decimal point, to avoid
> the
> misleading case where it says 0% but the reuse is non-zero.
>
> Signed-off-by: Christopher Larson <chris_larson at mentor.com>
>

Hold off on this, should probably address the rounding via the formatting,
otherwise we'll only get good results when the number can be fully
represented by the float type.
-- 
Christopher Larson
kergoth at gmail dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20160630/df175ce9/attachment-0002.html>


More information about the Openembedded-core mailing list