Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
CMake
CMake
Commits
2fb1c43a
Commit
2fb1c43a
authored
Jul 20, 2007
by
Bill Hoffman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ENH: fix div by 0
parent
a6c86cbd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
Source/CTest/cmCTestCoverageHandler.cxx
Source/CTest/cmCTestCoverageHandler.cxx
+1
-1
No files found.
Source/CTest/cmCTestCoverageHandler.cxx
View file @
2fb1c43a
...
...
@@ -1549,7 +1549,7 @@ int cmCTestCoverageHandler::RunBullseyeSourceSummary(
<<
"
\t
<PercentCoverage>"
;
covSumFile
.
setf
(
std
::
ios
::
fixed
,
std
::
ios
::
floatfield
);
covSumFile
.
precision
(
2
);
covSumFile
<<
(
percent_coverage
/
number_files
)
<<
"</PercentCoverage>
\n
"
covSumFile
<<
SAFEDIV
(
percent_coverage
,
number_files
)
<<
"</PercentCoverage>
\n
"
<<
"
\t
<EndDateTime>"
<<
end_time
<<
"</EndDateTime>
\n
"
;
covSumFile
<<
"<ElapsedMinutes>"
<<
static_cast
<
int
>
((
cmSystemTools
::
GetTime
()
-
elapsed_time_start
)
/
6
)
/
10.0
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment