diff options
author | alisdair sullivan <alisdairsullivan@yahoo.ca> | 2015-02-24 20:22:31 -0800 |
---|---|---|
committer | alisdair sullivan <alisdairsullivan@yahoo.ca> | 2015-03-03 01:57:55 -0800 |
commit | eb93bb000ae03d81788032f22c895a74a95f3ca6 (patch) | |
tree | a5b8165a43f40ba219f43c4fe64f041422ec08f2 /src | |
parent | ad8982b931b4adb5616014dff74d47fb69907060 (diff) |
replace use of `float_to_list/2` for r15x
Diffstat (limited to 'src')
-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}) -> |