[PATCH] ReportsHtml.cc: Add formatting

Chris Johns chrisj at rtems.org
Wed Jul 28 23:58:42 UTC 2021


OK

On 29/7/21 7:23 am, Ryan Long wrote:
> Fix output that changed after adding fix for ostream format
> ---
>  tester/covoar/ReportsHtml.cc | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/tester/covoar/ReportsHtml.cc b/tester/covoar/ReportsHtml.cc
> index fa5196d..755675d 100644
> --- a/tester/covoar/ReportsHtml.cc
> +++ b/tester/covoar/ReportsHtml.cc
> @@ -831,6 +831,7 @@ namespace Coverage {
>                 << std::endl;
>        } else {
>          report << "<td class=\"covoar-td\" align=\"center\">"
> +               << std::fixed << std::setprecision( 2 )
>                 << ( symbolInfo.stats.uncoveredBytes * 100.0 ) /
>                      symbolInfo.stats.sizeInBytes
>                 << "</td>" << std::endl;
> 


More information about the devel mailing list