]> code.ossystems Code Review - openembedded-core.git/commit
buildstats-summary: round the floating point percentage
authorChristopher Larson <chris_larson@mentor.com>
Fri, 1 Jul 2016 20:42:30 +0000 (13:42 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 12 Jul 2016 22:10:05 +0000 (23:10 +0100)
commit35d36a4d097ce8a0fd0be2f795e3d5052d4f753c
tree295734856ef0637161af06d16b1ee31b6f7d4a88
parent7f4d7a6f51569954e204f110827a8ce256bcdc68
buildstats-summary: round the floating point percentage

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@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/buildstats-summary.bbclass