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

Christopher Larson chris_larson at mentor.com
Fri Jul 1 20:43:01 UTC 2016


On Fri, Jul 1, 2016 at 1:39 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>
>

v2 changes: fixed to correctly do the rounding as part of the string
formatting.
-- 
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/20160701/2ab8b3b8/attachment-0002.html>


More information about the Openembedded-core mailing list