瀏覽代碼

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]). format(String, Width) -> io_lib:format("~*.ts", [Width, String]).
calculate_total(Stats) when length(Stats) =:= 0 ->
"0%";
calculate_total(Stats) -> calculate_total(Stats) ->
TotalStats = length(Stats), TotalStats = length(Stats),
TotalCovInt = round(lists:foldl( TotalCovInt = round(lists:foldl(

Loading…
取消
儲存