浏览代码

Account for division by zero

pull/983/head
Panagiotis PJ Papadomitsos 9 年前
父节点
当前提交
ae9c1fa0f8
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. +2
    -0
      src/rebar_prv_cover.erl

+ 2
- 0
src/rebar_prv_cover.erl 查看文件

@ -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(

正在加载...
取消
保存