This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
SisMaker
/
rebar3
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
62
Wiki
Activity
Browse Source
Account for division by zero
pull/983/head
Panagiotis PJ Papadomitsos
9 years ago
parent
8c055a7d96
commit
ae9c1fa0f8
1 changed files
with
2 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
src/rebar_prv_cover.erl
+ 2
- 0
src/rebar_prv_cover.erl
View File
@ -238,6 +238,8 @@ seperator(Width) ->
format
(
String
,
Width
)
-
>
io_lib
:
format
(
"
~
*.ts
"
,
[
Width
,
String
]
)
.
calculate_total
(
Stats
)
when
length
(
Stats
)
=:=
0
-
>
"
0%
"
;
calculate_total
(
Stats
)
-
>
TotalStats
=
length
(
Stats
)
,
TotalCovInt
=
round
(
lists
:
foldl
(
Write
Preview
Loading…
Cancel
Save