From 99fcad8cbe31ba23d9c079b62e8a174c5b3ddf1b Mon Sep 17 00:00:00 2001 From: Nathanael Sensfelder Date: Sat, 3 Mar 2018 20:28:46 +0100 Subject: Fixing stuff that made Dialyzer output warnings. --- src/struct/statistics.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/struct/statistics.erl') diff --git a/src/struct/statistics.erl b/src/struct/statistics.erl index f3d78a8..6e29ea4 100644 --- a/src/struct/statistics.erl +++ b/src/struct/statistics.erl @@ -69,7 +69,7 @@ float_to_int (F) -> ceil(F). min_max (Min, Max, V) -> min(Max, max(Min, V)). -spec average (list(number())) -> number(). -average ([]) -> 0; +%average ([]) -> 0; average (L) -> lists:sum(L) / length(L). % V | 010 | 030 | 050 | 070 | 100 | -- cgit v1.2.3-70-g09d2