ソースを参照

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(

読み込み中…
キャンセル
保存