diff options
-rw-r--r-- | src/rebar_prv_cover.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rebar_prv_cover.erl b/src/rebar_prv_cover.erl index f3fdb24..4bcef29 100644 --- a/src/rebar_prv_cover.erl +++ b/src/rebar_prv_cover.erl @@ -162,9 +162,9 @@ mod_to_filename(TaskDir, M) -> process(Coverage) -> process(Coverage, {0, 0}). process([], {0, 0}) -> - "0.0%"; + "0%"; process([], {Cov, Not}) -> - float_to_list((Cov / (Cov + Not)) * 100, [{decimals, 1}]) ++ "%"; + integer_to_list(trunc((Cov / (Cov + Not)) * 100)) ++ "%"; %% line 0 is a line added by eunit and never executed so ignore it process([{{_, 0}, _}|Rest], Acc) -> process(Rest, Acc); process([{_, {Cov, Not}}|Rest], {Covered, NotCovered}) -> |