Skip to content

Commit 126caad

Browse files
committed
html-writer: recognize float-formatted parsing ratio, too
1 parent fdf91bb commit 126caad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

html-writer.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ namespace CsLib {
134134

135135
try {
136136
const int count = boost::lexical_cast<int>(itCount->second);
137-
const int ratio = boost::lexical_cast<int>(itRatio->second);
137+
const int ratio = boost::lexical_cast<float>(itRatio->second);
138138
if (ratio < parsingRatioThr)
139139
str << "<p><b style='color: #FF0000;'>warning:</b> "
140140
"low parsing ratio: " << ratio << "%</p>\n";
@@ -150,7 +150,7 @@ namespace CsLib {
150150
return;
151151

152152
const int baseCount = boost::lexical_cast<int>(itCount->second);
153-
const int baseRatio = boost::lexical_cast<int>(itRatio->second);
153+
const int baseRatio = boost::lexical_cast<float>(itRatio->second);
154154
if (baseRatio < parsingRatioThr && baseRatio < ratio)
155155
str << "<p><b style='color: #FF0000;'>warning:</b> "
156156
"low parsing ratio in diff base: "

0 commit comments

Comments
 (0)